	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pinmux_config_mux
_pinmux_config_mux:                     ## @pinmux_config_mux
	.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
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movl	(%rdx), %esi
	callq	_bus_read_4
	movl	%eax, %ebx
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_pinmux_mux_function
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movq	_TEGRA_MUX_FUNCTION_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_TEGRA_MUX_FUNCTION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, %esi
	shll	%cl, %esi
	andl	%edx, %eax
	notl	%esi
	andl	%esi, %ebx
	shll	%cl, %eax
	orl	%eax, %ebx
LBB0_4:
	movq	(%r12), %rax
	movq	_PROP_ID_PULL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	cmpl	$-1, %edx
	je	LBB0_6
## %bb.5:
	movq	_TEGRA_MUX_PUPD_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TEGRA_MUX_PUPD_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%esi, %edi
	shll	%cl, %edi
	andl	%esi, %edx
	notl	%edi
	andl	%edi, %ebx
	shll	%cl, %edx
	orl	%edx, %ebx
LBB0_6:
	movq	_PROP_ID_TRISTATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	cmpl	$-1, %edx
	je	LBB0_8
## %bb.7:
	movq	_TEGRA_MUX_TRISTATE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btrl	%ecx, %ebx
	andl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%edx, %ebx
LBB0_8:
	movq	_TEGRA_MUX_ENABLE_INPUT_SHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	cmpl	$-1, %edx
	je	LBB0_10
## %bb.9:
	btrl	%ecx, %ebx
	andl	$1, %edx
	shll	%cl, %edx
	orl	%edx, %ebx
LBB0_10:
	movq	_PROP_ID_ENABLE_INPUT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %edx
	cmpl	$-1, %edx
	je	LBB0_12
## %bb.11:
	andl	$1, %edx
	shll	%cl, %edx
	btrl	%ecx, %ebx
	orl	%ebx, %edx
	btrl	%ecx, %edx
	movq	_PROP_ID_OPEN_DRAIN@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rax,%rsi,4), %ebx
	andl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %ebx
	orl	%edx, %ebx
LBB0_12:
	movq	_PROP_ID_LOCK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	cmpl	$-1, %edx
	je	LBB0_14
## %bb.13:
	movq	_TEGRA_MUX_LOCK_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btrl	%ecx, %ebx
	andl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%edx, %ebx
LBB0_14:
	movq	_PROP_ID_IORESET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	cmpl	$-1, %edx
	je	LBB0_16
## %bb.15:
	movq	_TEGRA_MUX_IORESET_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btrl	%ecx, %ebx
	andl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%edx, %ebx
LBB0_16:
	movq	_PROP_ID_RCV_SEL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.17:
	movq	_TEGRA_MUX_RCV_SEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btrl	%ecx, %ebx
	andl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, %ebx
LBB0_18:
	movl	(%r14), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_bus_write_4
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_2:
	movl	4(%r14), %edi
	movq	8(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rcx
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown function %s for pin %s\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_TEGRA_MUX_FUNCTION_MASK,4,2    ## @TEGRA_MUX_FUNCTION_MASK
	.comm	_TEGRA_MUX_FUNCTION_SHIFT,4,2   ## @TEGRA_MUX_FUNCTION_SHIFT
	.comm	_PROP_ID_PULL,8,3               ## @PROP_ID_PULL
	.comm	_TEGRA_MUX_PUPD_MASK,4,2        ## @TEGRA_MUX_PUPD_MASK
	.comm	_TEGRA_MUX_PUPD_SHIFT,4,2       ## @TEGRA_MUX_PUPD_SHIFT
	.comm	_PROP_ID_TRISTATE,8,3           ## @PROP_ID_TRISTATE
	.comm	_TEGRA_MUX_TRISTATE_SHIFT,4,2   ## @TEGRA_MUX_TRISTATE_SHIFT
	.comm	_TEGRA_MUX_ENABLE_INPUT_SHIFT,8,3 ## @TEGRA_MUX_ENABLE_INPUT_SHIFT
	.comm	_PROP_ID_ENABLE_INPUT,8,3       ## @PROP_ID_ENABLE_INPUT
	.comm	_PROP_ID_OPEN_DRAIN,8,3         ## @PROP_ID_OPEN_DRAIN
	.comm	_PROP_ID_LOCK,8,3               ## @PROP_ID_LOCK
	.comm	_TEGRA_MUX_LOCK_SHIFT,4,2       ## @TEGRA_MUX_LOCK_SHIFT
	.comm	_PROP_ID_IORESET,8,3            ## @PROP_ID_IORESET
	.comm	_TEGRA_MUX_IORESET_SHIFT,4,2    ## @TEGRA_MUX_IORESET_SHIFT
	.comm	_PROP_ID_RCV_SEL,8,3            ## @PROP_ID_RCV_SEL
	.comm	_TEGRA_MUX_RCV_SEL_SHIFT,4,2    ## @TEGRA_MUX_RCV_SEL_SHIFT
	.no_dead_strip	_pinmux_config_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pinmux_config_mux
_pinmux_config_mux:                     ; @pinmux_config_mux
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w0, [x0]
	ldr	w1, [x2]
	bl	_bus_read_4
	mov	x21, x0
	ldr	x1, [x22, #8]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_pinmux_mux_function
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.2:
Lloh0:
	adrp	x8, _TEGRA_MUX_FUNCTION_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEGRA_MUX_FUNCTION_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TEGRA_MUX_FUNCTION_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TEGRA_MUX_FUNCTION_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w10, w8, w9
	bic	w10, w21, w10
	and	w8, w8, w0
	lsl	w8, w8, w9
	orr	w21, w10, w8
LBB0_3:
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _PROP_ID_PULL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PROP_ID_PULL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cmn	w9, #1
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x10, _TEGRA_MUX_PUPD_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TEGRA_MUX_PUPD_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _TEGRA_MUX_PUPD_SHIFT@GOTPAGE
Lloh13:
	ldr	x11, [x11, _TEGRA_MUX_PUPD_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	lsl	w12, w10, w11
	bic	w12, w21, w12
	and	w9, w10, w9
	lsl	w9, w9, w11
	orr	w21, w12, w9
LBB0_5:
Lloh15:
	adrp	x9, _PROP_ID_TRISTATE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PROP_ID_TRISTATE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cmn	w9, #1
	b.eq	LBB0_7
; %bb.6:
Lloh18:
	adrp	x10, _TEGRA_MUX_TRISTATE_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _TEGRA_MUX_TRISTATE_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w11, w11, w10
	bic	w11, w21, w11
	and	w9, w9, #0x1
	lsl	w9, w9, w10
	orr	w21, w11, w9
LBB0_7:
Lloh21:
	adrp	x9, _TEGRA_MUX_ENABLE_INPUT_SHIFT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TEGRA_MUX_ENABLE_INPUT_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	w11, [x8, x9, lsl #2]
	cmn	w11, #1
	mov	w10, #1
	lsl	w12, w10, w9
	bic	w12, w21, w12
	and	w11, w11, #0x1
	lsl	w11, w11, w9
	orr	w11, w12, w11
	csel	w2, w21, w11, eq
Lloh24:
	adrp	x11, _PROP_ID_ENABLE_INPUT@GOTPAGE
Lloh25:
	ldr	x11, [x11, _PROP_ID_ENABLE_INPUT@GOTPAGEOFF]
Lloh26:
	ldr	x11, [x11]
	ldr	w11, [x8, x11, lsl #2]
	cmn	w11, #1
	b.eq	LBB0_9
; %bb.8:
	lsl	w10, w10, w9
	bic	w12, w2, w10
	and	w11, w11, #0x1
	lsl	w11, w11, w9
	orr	w11, w11, w12
	bic	w10, w11, w10
Lloh27:
	adrp	x11, _PROP_ID_OPEN_DRAIN@GOTPAGE
Lloh28:
	ldr	x11, [x11, _PROP_ID_OPEN_DRAIN@GOTPAGEOFF]
Lloh29:
	ldr	x11, [x11]
	ldr	w11, [x8, x11, lsl #2]
	and	w11, w11, #0x1
	lsl	w9, w11, w9
	orr	w2, w9, w10
LBB0_9:
Lloh30:
	adrp	x9, _PROP_ID_LOCK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PROP_ID_LOCK@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cmn	w9, #1
	b.eq	LBB0_11
; %bb.10:
Lloh33:
	adrp	x10, _TEGRA_MUX_LOCK_SHIFT@GOTPAGE
Lloh34:
	ldr	x10, [x10, _TEGRA_MUX_LOCK_SHIFT@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w11, w11, w10
	bic	w11, w2, w11
	and	w9, w9, #0x1
	lsl	w9, w9, w10
	orr	w2, w11, w9
LBB0_11:
Lloh36:
	adrp	x9, _PROP_ID_IORESET@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PROP_ID_IORESET@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cmn	w9, #1
	b.eq	LBB0_13
; %bb.12:
Lloh39:
	adrp	x10, _TEGRA_MUX_IORESET_SHIFT@GOTPAGE
Lloh40:
	ldr	x10, [x10, _TEGRA_MUX_IORESET_SHIFT@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w11, w11, w10
	bic	w11, w2, w11
	and	w9, w9, #0x1
	lsl	w9, w9, w10
	orr	w2, w11, w9
LBB0_13:
Lloh42:
	adrp	x9, _PROP_ID_RCV_SEL@GOTPAGE
Lloh43:
	ldr	x9, [x9, _PROP_ID_RCV_SEL@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmn	w8, #1
	b.eq	LBB0_15
; %bb.14:
Lloh45:
	adrp	x9, _TEGRA_MUX_RCV_SEL_SHIFT@GOTPAGE
Lloh46:
	ldr	x9, [x9, _TEGRA_MUX_RCV_SEL_SHIFT@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w10, w10, w9
	bic	w10, w2, w10
	and	w8, w8, #0x1
	lsl	w8, w8, w9
	orr	w2, w10, w8
LBB0_15:
	ldr	w0, [x20]
	ldr	w1, [x19]
	bl	_bus_write_4
	mov	w0, #0
	b	LBB0_17
LBB0_16:
	ldr	w0, [x20, #4]
	ldr	x2, [x22, #8]
Lloh48:
	adrp	x1, l_.str@PAGE
Lloh49:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x23
	bl	_device_printf
Lloh50:
	adrp	x8, _ENXIO@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown function %s for pin %s\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_TEGRA_MUX_FUNCTION_MASK,4,2    ; @TEGRA_MUX_FUNCTION_MASK
	.comm	_TEGRA_MUX_FUNCTION_SHIFT,4,2   ; @TEGRA_MUX_FUNCTION_SHIFT
	.comm	_PROP_ID_PULL,8,3               ; @PROP_ID_PULL
	.comm	_TEGRA_MUX_PUPD_MASK,4,2        ; @TEGRA_MUX_PUPD_MASK
	.comm	_TEGRA_MUX_PUPD_SHIFT,4,2       ; @TEGRA_MUX_PUPD_SHIFT
	.comm	_PROP_ID_TRISTATE,8,3           ; @PROP_ID_TRISTATE
	.comm	_TEGRA_MUX_TRISTATE_SHIFT,4,2   ; @TEGRA_MUX_TRISTATE_SHIFT
	.comm	_TEGRA_MUX_ENABLE_INPUT_SHIFT,8,3 ; @TEGRA_MUX_ENABLE_INPUT_SHIFT
	.comm	_PROP_ID_ENABLE_INPUT,8,3       ; @PROP_ID_ENABLE_INPUT
	.comm	_PROP_ID_OPEN_DRAIN,8,3         ; @PROP_ID_OPEN_DRAIN
	.comm	_PROP_ID_LOCK,8,3               ; @PROP_ID_LOCK
	.comm	_TEGRA_MUX_LOCK_SHIFT,4,2       ; @TEGRA_MUX_LOCK_SHIFT
	.comm	_PROP_ID_IORESET,8,3            ; @PROP_ID_IORESET
	.comm	_TEGRA_MUX_IORESET_SHIFT,4,2    ; @TEGRA_MUX_IORESET_SHIFT
	.comm	_PROP_ID_RCV_SEL,8,3            ; @PROP_ID_RCV_SEL
	.comm	_TEGRA_MUX_RCV_SEL_SHIFT,4,2    ; @TEGRA_MUX_RCV_SEL_SHIFT
	.no_dead_strip	_pinmux_config_mux
.subsections_via_symbols
