	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_xusb_padctl_pinmux_set
_tegra_xusb_padctl_pinmux_set:          ## @tegra_xusb_padctl_pinmux_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	(%rax), %r12
	movl	%ebx, %r13d
	shlq	$5, %r13
	movl	(%r12,%r13), %eax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	8(%r12,%r13), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, (%rcx,%rbx,4)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movl	24(%r12,%r13), %esi
	movq	%r14, %rdi
	callq	_padctl_readl
	movl	16(%r12,%r13), %edx
	movb	20(%r12,%r13), %cl
	shll	%cl, %edx
	shll	%cl, %ebx
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %ebx
	movl	24(%r12,%r13), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_padctl_writel
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tegra_xusb_padctl_pinmux_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_xusb_padctl_pinmux_set
_tegra_xusb_padctl_pinmux_set:          ; @tegra_xusb_padctl_pinmux_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	bl	_pinctrl_dev_get_drvdata
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	w9, w21
	lsl	x10, x9, #5
	ldr	w10, [x8, x10]
	cbz	w10, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	add	x11, x8, x9, lsl #5
	ldr	x11, [x11, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x21, lsl #2]
	cmp	w12, w20
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	cmp	x10, x21
	b.ne	LBB0_2
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	add	x20, x8, x9, lsl #5
	ldr	w1, [x20, #24]
	mov	x0, x19
	bl	_padctl_readl
	ldp	w8, w9, [x20, #16]
	lsl	w8, w8, w9
	bic	w8, w0, w8
	lsl	w9, w21, w9
	orr	w1, w8, w9
	ldr	w2, [x20, #24]
	mov	x0, x19
	bl	_padctl_writel
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tegra_xusb_padctl_pinmux_set
.subsections_via_symbols
