	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iomux_attach
_iomux_attach:                          ## @iomux_attach
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	callq	_device_get_softc
	movq	%rax, %r14
	movl	%ebx, 16(%rax)
	xorl	%eax, %eax
	callq	_imx_soc_type
	addl	$-128, %eax
	cmpl	$7, %eax
	jae	LBB0_1
## %bb.3:
	cltq
	leaq	l_switch.table.iomux_attach(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%r14)
	movl	$0, -20(%rbp)
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-20(%rbp), %rdx
	movl	%ebx, %edi
	callq	_bus_alloc_resource_any
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_iomux_sc@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	callq	_fdt_pinctrl_register
	movl	%ebx, %edi
	callq	_fdt_pinctrl_configure_tree
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%ebx, %edi
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown SoC type\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"Cannot allocate memory resources\n"

	.comm	_iomux_sc,8,3                   ## @iomux_sc
L_.str.2:                               ## @.str.2
	.asciz	"fsl,pins"

	.no_dead_strip	_iomux_attach
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.iomux_attach
l_switch.table.iomux_attach:
	.long	56                              ## 0x38
	.long	52                              ## 0x34
	.long	52                              ## 0x34
	.long	52                              ## 0x34
	.long	52                              ## 0x34
	.long	8                               ## 0x8
	.long	4                               ## 0x4

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iomux_attach
_iomux_attach:                          ; @iomux_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_device_get_softc
	mov	x20, x0
	str	w19, [x0, #16]
	bl	_imx_soc_type
	sub	w8, w0, #128
	cmp	w8, #7
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.iomux_attach@PAGE
Lloh1:
	add	x9, x9, l_switch.table.iomux_attach@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	str	w8, [x20]
	str	wzr, [sp, #12]
Lloh2:
	adrp	x8, _SYS_RES_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SYS_RES_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _RF_ACTIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RF_ACTIVE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_bus_alloc_resource_any
	str	x0, [x20, #8]
	cbz	x0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _iomux_sc@GOTPAGE
Lloh9:
	ldr	x8, [x8, _iomux_sc@GOTPAGEOFF]
Lloh10:
	str	x20, [x8]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_fdt_pinctrl_register
	mov	x0, x19
	bl	_fdt_pinctrl_configure_tree
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_device_printf
Lloh17:
	adrp	x8, _ENXIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown SoC type\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"Cannot allocate memory resources\n"

	.comm	_iomux_sc,8,3                   ; @iomux_sc
l_.str.2:                               ; @.str.2
	.asciz	"fsl,pins"

	.no_dead_strip	_iomux_attach
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.iomux_attach
l_switch.table.iomux_attach:
	.long	56                              ; 0x38
	.long	52                              ; 0x34
	.long	52                              ; 0x34
	.long	52                              ; 0x34
	.long	52                              ; 0x34
	.long	8                               ; 0x8
	.long	4                               ; 0x4

.subsections_via_symbols
