	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function colibri_pcmcia_hw_init
_colibri_pcmcia_hw_init:                ## @colibri_pcmcia_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_colibri_pcmcia_gpios@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_gpio_request_array
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	_READY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_gpio_to_irq
	movq	%rax, 8(%r14)
	movq	(%r15), %rax
	movq	_DETECT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_gpio_to_irq
	movq	(%r14), %rcx
	movq	_SOC_STAT_CD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	movq	%rax, 8(%rcx,%rdx)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rcx,%rdx)
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_colibri_pcmcia_gpios,8,3       ## @colibri_pcmcia_gpios
	.comm	_READY,8,3                      ## @READY
	.comm	_DETECT,8,3                     ## @DETECT
	.comm	_SOC_STAT_CD,8,3                ## @SOC_STAT_CD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCMCIA CD"

	.no_dead_strip	_colibri_pcmcia_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function colibri_pcmcia_hw_init
_colibri_pcmcia_hw_init:                ; @colibri_pcmcia_hw_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x21, _colibri_pcmcia_gpios@GOTPAGE
Lloh1:
	ldr	x21, [x21, _colibri_pcmcia_gpios@GOTPAGEOFF]
	ldr	x20, [x21]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x20
	bl	_gpio_request_array
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _READY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _READY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_gpio_to_irq
	str	x0, [x19, #8]
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _DETECT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DETECT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_gpio_to_irq
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _SOC_STAT_CD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SOC_STAT_CD@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #4
Lloh11:
	adrp	x9, l_.str@PAGE
Lloh12:
	add	x9, x9, l_.str@PAGEOFF
	stp	x9, x0, [x8]
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_colibri_pcmcia_gpios,8,3       ; @colibri_pcmcia_gpios
	.comm	_READY,8,3                      ; @READY
	.comm	_DETECT,8,3                     ; @DETECT
	.comm	_SOC_STAT_CD,8,3                ; @SOC_STAT_CD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCMCIA CD"

	.no_dead_strip	_colibri_pcmcia_hw_init
.subsections_via_symbols
