	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aml8726_pinctrl_attach
_aml8726_pinctrl_attach:                ## @aml8726_pinctrl_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	%r14d, 16(%rax)
	movl	$0, 4(%rax)
	movq	_aml8726_soc_hw_rev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	_aml8726_m8b_pinctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_aml8726_m8b_pkg_pin@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_7:
	movq	_aml8726_m8_pinctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_aml8726_m8_pkg_pin@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$1, 4(%rbx)
	jmp	LBB0_4
LBB0_6:
	movq	_aml8726_m6_pinctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_aml8726_m6_pkg_pin@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_aml8726_m3_pinctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_aml8726_m3_pkg_pin@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_4:
	movq	_aml8726_pinctrl_spec@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movl	%r14d, %edi
	callq	_bus_alloc_resources
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
	movl	%r14d, %edi
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_12:
	movq	%rbx, %rdi
	callq	_AML_PINCTRL_LOCK_INIT
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	callq	_fdt_pinctrl_register
	movl	%r14d, %edi
	callq	_fdt_pinctrl_configure_tree
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_aml8726_soc_hw_rev,4,2         ## @aml8726_soc_hw_rev
	.comm	_aml8726_m3_pinctrl,4,2         ## @aml8726_m3_pinctrl
	.comm	_aml8726_m3_pkg_pin,4,2         ## @aml8726_m3_pkg_pin
	.comm	_aml8726_m6_pinctrl,4,2         ## @aml8726_m6_pinctrl
	.comm	_aml8726_m6_pkg_pin,4,2         ## @aml8726_m6_pkg_pin
	.comm	_aml8726_m8_pinctrl,4,2         ## @aml8726_m8_pinctrl
	.comm	_aml8726_m8_pkg_pin,4,2         ## @aml8726_m8_pkg_pin
	.comm	_aml8726_m8b_pinctrl,4,2        ## @aml8726_m8b_pinctrl
	.comm	_aml8726_m8b_pkg_pin,4,2        ## @aml8726_m8b_pkg_pin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported SoC\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_aml8726_pinctrl_spec,4,2       ## @aml8726_pinctrl_spec
L_.str.1:                               ## @.str.1
	.asciz	"could not allocate resources for device\n"

L_.str.2:                               ## @.str.2
	.asciz	"amlogic,pins"

	.no_dead_strip	_aml8726_pinctrl_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aml8726_pinctrl_attach
_aml8726_pinctrl_attach:                ; @aml8726_pinctrl_attach
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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
	str	w19, [x0, #16]
	str	wzr, [x0, #4]
Lloh0:
	adrp	x8, _aml8726_soc_hw_rev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aml8726_soc_hw_rev@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh5:
	adrp	x8, _aml8726_m8b_pinctrl@GOTPAGE
Lloh6:
	ldr	x8, [x8, _aml8726_m8b_pinctrl@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #12]
Lloh8:
	adrp	x8, _aml8726_m8b_pkg_pin@GOTPAGE
Lloh9:
	ldr	x8, [x8, _aml8726_m8b_pkg_pin@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_4:
Lloh12:
	adrp	x8, _aml8726_m8_pinctrl@GOTPAGE
Lloh13:
	ldr	x8, [x8, _aml8726_m8_pinctrl@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #12]
Lloh15:
	adrp	x8, _aml8726_m8_pkg_pin@GOTPAGE
Lloh16:
	ldr	x8, [x8, _aml8726_m8_pkg_pin@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x20, #4]
	b	LBB0_9
LBB0_6:
Lloh17:
	adrp	x8, _aml8726_m6_pinctrl@GOTPAGE
Lloh18:
	ldr	x8, [x8, _aml8726_m6_pinctrl@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _aml8726_m6_pkg_pin@GOTPAGE
Lloh21:
	ldr	x9, [x9, _aml8726_m6_pkg_pin@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh22:
	adrp	x8, _aml8726_m3_pinctrl@GOTPAGE
Lloh23:
	ldr	x8, [x8, _aml8726_m3_pinctrl@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _aml8726_m3_pkg_pin@GOTPAGE
Lloh26:
	ldr	x9, [x9, _aml8726_m3_pkg_pin@GOTPAGEOFF]
LBB0_8:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
LBB0_9:
Lloh27:
	adrp	x8, _aml8726_pinctrl_spec@GOTPAGE
Lloh28:
	ldr	x8, [x8, _aml8726_pinctrl_spec@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_bus_alloc_resources
	cbz	x0, LBB0_12
; %bb.10:
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_device_printf
Lloh32:
	adrp	x8, _ENXIO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_AML_PINCTRL_LOCK_INIT
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	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
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_aml8726_soc_hw_rev,4,2         ; @aml8726_soc_hw_rev
	.comm	_aml8726_m3_pinctrl,4,2         ; @aml8726_m3_pinctrl
	.comm	_aml8726_m3_pkg_pin,4,2         ; @aml8726_m3_pkg_pin
	.comm	_aml8726_m6_pinctrl,4,2         ; @aml8726_m6_pinctrl
	.comm	_aml8726_m6_pkg_pin,4,2         ; @aml8726_m6_pkg_pin
	.comm	_aml8726_m8_pinctrl,4,2         ; @aml8726_m8_pinctrl
	.comm	_aml8726_m8_pkg_pin,4,2         ; @aml8726_m8_pkg_pin
	.comm	_aml8726_m8b_pinctrl,4,2        ; @aml8726_m8b_pinctrl
	.comm	_aml8726_m8b_pkg_pin,4,2        ; @aml8726_m8b_pkg_pin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported SoC\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_aml8726_pinctrl_spec,4,2       ; @aml8726_pinctrl_spec
l_.str.1:                               ; @.str.1
	.asciz	"could not allocate resources for device\n"

l_.str.2:                               ; @.str.2
	.asciz	"amlogic,pins"

	.no_dead_strip	_aml8726_pinctrl_attach
.subsections_via_symbols
