	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sa11x0_cf_hw_init
_sa11x0_cf_hw_init:                     ## @sa11x0_cf_hw_init
	.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	%rdi, %r12
	movq	32(%rdi), %r14
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$24, %r12
	jmp	LBB0_11
LBB0_2:
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	addq	$16, %r12
LBB0_11:
	movq	(%r12), %rdi
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get_optional
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r12), %rdi
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_7:
	movq	_sa11x0_cf_gpio_names@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.8:
	movl	$8, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%r12), %rcx
	movq	%rax, -8(%rcx,%r13)
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	addq	(%r12), %r13
	movq	%r13, %r12
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.1:                               ## @.str.1
	.asciz	"bus-enable"

L_.str.2:                               ## @.str.2
	.asciz	"vcc"

L_.str.3:                               ## @.str.3
	.asciz	"no Vcc regulator provided, ignoring Vcc controls\n"

	.comm	_sa11x0_cf_gpio_names,8,3       ## @sa11x0_cf_gpio_names
	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
	.no_dead_strip	_sa11x0_cf_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sa11x0_cf_hw_init
_sa11x0_cf_hw_init:                     ; @sa11x0_cf_hw_init
	.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	x19, x0
	ldr	x20, [x0, #32]
Lloh0:
	adrp	x22, _GPIOD_OUT_HIGH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GPIOD_OUT_HIGH@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get
	mov	x21, x19
	str	x0, [x21, #24]!
	bl	_IS_ERR
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w2, [x22]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	mov	x21, x19
	str	x0, [x21, #16]!
	bl	_IS_ERR
	cbz	x0, LBB0_4
LBB0_2:
	ldr	x0, [x21]
LBB0_3:
	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
	b	_PTR_ERR
LBB0_4:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get_optional
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbnz	x8, LBB0_3
; %bb.5:
	cbnz	x0, LBB0_7
; %bb.6:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_7:
Lloh10:
	adrp	x21, _sa11x0_cf_gpio_names@GOTPAGE
Lloh11:
	ldr	x21, [x21, _sa11x0_cf_gpio_names@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x22, #0
	mov	x23, #0
Lloh12:
	adrp	x24, _GPIOD_IN@GOTPAGE
Lloh13:
	ldr	x24, [x24, _GPIOD_IN@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	lsl	x9, x23, #3
	ldr	x8, [x8, x9]
	ldr	x10, [x19]
	str	x8, [x10, x22]
	ldr	x8, [x21]
	ldr	x1, [x8, x9]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	ldr	x8, [x19]
	add	x8, x8, x22
	str	x0, [x8, #8]
	bl	_IS_ERR
	cbnz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	add	x22, x22, #16
	cmp	x23, w0, sxtw
	b.lt	LBB0_9
LBB0_11:
	mov	w0, #0
	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
LBB0_12:
	ldr	x8, [x19]
	add	x8, x8, x22
	add	x21, x8, #8
	b	LBB0_2
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.1:                               ; @.str.1
	.asciz	"bus-enable"

l_.str.2:                               ; @.str.2
	.asciz	"vcc"

l_.str.3:                               ; @.str.3
	.asciz	"no Vcc regulator provided, ignoring Vcc controls\n"

	.comm	_sa11x0_cf_gpio_names,8,3       ; @sa11x0_cf_gpio_names
	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
	.no_dead_strip	_sa11x0_cf_hw_init
.subsections_via_symbols
