	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iomux_configure_pins
_iomux_configure_pins:                  ## @iomux_configure_pins
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_device_get_softc
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_OF_node_from_xref
	leaq	L_.str(%rip), %rsi
	leaq	-96(%rbp), %rcx
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	movl	$24, %edx
	callq	_OF_getencprop_alloc_multi
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.3:
	movq	-96(%rbp), %r15
	leaq	-80(%rbp), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$24, %r15
	decl	%ebx
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PADCONF_SION@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	(%r15), %r13d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PADMUX_SION@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15), %esi
	movl	8(%r15), %edx
	orl	%r13d, %edx
	movq	%r12, %rdi
	callq	_WR4
	movl	12(%r15), %esi
	movl	16(%r15), %edx
	movq	%r12, %rdi
	callq	_iomux_configure_input
	movl	(%r15), %edx
	movq	_PADCONF_NONE@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	20(%r15), %esi
	movq	%r12, %rdi
	callq	_WR4
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movl	$32, %ecx
	callq	_OF_getprop
	movl	(%r15), %r10d
	orl	8(%r15), %r13d
	movl	4(%r15), %edx
	movl	12(%r15), %r8d
	movl	16(%r15), %r9d
	movl	20(%r15), %eax
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movl	%r13d, %ecx
	pushq	%r10
	pushq	%rax
	callq	_printf
	addq	$16, %rsp
	jmp	LBB0_10
LBB0_11:
	movq	-96(%rbp), %rdi
	callq	_OF_prop_free
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fsl,pins"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_PADCONF_SION,4,2               ## @PADCONF_SION
	.comm	_PADMUX_SION,4,2                ## @PADMUX_SION
	.comm	_PADCONF_NONE,4,2               ## @PADCONF_NONE
	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.1:                               ## @.str.1
	.asciz	"name"

L_.str.2:                               ## @.str.2
	.asciz	"%16s: muxreg 0x%04x muxval 0x%02x inpreg 0x%04x inpval 0x%02x padreg 0x%04x padval 0x%08x\n"

	.no_dead_strip	_iomux_configure_pins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iomux_configure_pins
_iomux_configure_pins:                  ; @iomux_configure_pins
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_device_get_softc
	mov	x19, x0
	mov	x0, x20
	bl	_OF_node_from_xref
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, sp
	mov	x0, x20
	mov	w2, #24
	bl	_OF_getencprop_alloc_multi
	tbnz	w0, #31, LBB0_10
; %bb.1:
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.2:
	ldr	x8, [sp]
	add	x24, x8, #12
Lloh5:
	adrp	x25, _PADCONF_SION@GOTPAGE
Lloh6:
	ldr	x25, [x25, _PADCONF_SION@GOTPAGEOFF]
Lloh7:
	adrp	x26, _PADMUX_SION@GOTPAGE
Lloh8:
	ldr	x26, [x26, _PADMUX_SION@GOTPAGEOFF]
Lloh9:
	adrp	x27, _PADCONF_NONE@GOTPAGE
Lloh10:
	ldr	x27, [x27, _PADCONF_NONE@GOTPAGEOFF]
Lloh11:
	adrp	x28, _bootverbose@GOTPAGE
Lloh12:
	ldr	x28, [x28, _bootverbose@GOTPAGEOFF]
Lloh13:
	adrp	x23, l_.str.2@PAGE
Lloh14:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #24
	subs	w21, w21, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	ldr	w9, [x26]
	ldp	w10, w1, [x24, #-12]
	tst	w8, w10
	csel	w22, wzr, w9, eq
	ldur	w8, [x24, #-4]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_WR4
	ldp	w1, w2, [x24]
	mov	x0, x19
	bl	_iomux_configure_input
	ldur	w2, [x24, #-12]
	ldr	w8, [x27]
	tst	w8, w2
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	cbnz	x8, LBB0_7
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x24, #8]
	mov	x0, x19
	bl	_WR4
	ldr	x8, [x28]
	cbz	x8, LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #8
	mov	x0, x20
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #32
	bl	_OF_getprop
	ldp	w8, w4, [x24, #-4]
	orr	w3, w8, w22
	ldp	w5, w6, [x24, #4]
	ldp	w7, w2, [x24, #-12]
	add	x1, sp, #8
	mov	x0, x23
	bl	_printf
	b	LBB0_3
LBB0_8:
	ldr	x0, [sp]
	bl	_OF_prop_free
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _ENOENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
LBB0_11:
	ldr	x8, [sp, #40]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fsl,pins"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_PADCONF_SION,4,2               ; @PADCONF_SION
	.comm	_PADMUX_SION,4,2                ; @PADMUX_SION
	.comm	_PADCONF_NONE,4,2               ; @PADCONF_NONE
	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.1:                               ; @.str.1
	.asciz	"name"

l_.str.2:                               ; @.str.2
	.asciz	"%16s: muxreg 0x%04x muxval 0x%02x inpreg 0x%04x inpval 0x%02x padreg 0x%04x padval 0x%08x\n"

	.no_dead_strip	_iomux_configure_pins
.subsections_via_symbols
