	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function airo_config
_airo_config:                           ## @airo_config
	.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, %rbx
	leaq	16(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	_CONF_ENABLE_IRQ@GOTPCREL(%rip), %rax
	movq	_CONF_AUTO_SET_VPP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CONF_AUTO_AUDIO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CONF_AUTO_SET_IO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%ecx, (%rbx)
	movq	_airo_cs_config_check@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pcmcia_loop_config
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	movq	%rbx, %rdi
	callq	_airo_release
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 32(%rbx)
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_pcmcia_enable_device
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	32(%rbx), %edi
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_init_airo_card
	movl	%eax, %ecx
	movq	8(%rbx), %rax
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_5
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"airo_config\n"

	.comm	_CONF_ENABLE_IRQ,4,2            ## @CONF_ENABLE_IRQ
	.comm	_CONF_AUTO_SET_VPP,4,2          ## @CONF_AUTO_SET_VPP
	.comm	_CONF_AUTO_AUDIO,4,2            ## @CONF_AUTO_AUDIO
	.comm	_CONF_AUTO_SET_IO,4,2           ## @CONF_AUTO_SET_IO
	.comm	_airo_cs_config_check,4,2       ## @airo_cs_config_check
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_airo_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function airo_config
_airo_config:                           ; @airo_config
	.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
	add	x20, x0, #16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh2:
	adrp	x8, _CONF_ENABLE_IRQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONF_ENABLE_IRQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CONF_AUTO_SET_VPP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CONF_AUTO_SET_VPP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _CONF_AUTO_AUDIO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CONF_AUTO_AUDIO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _CONF_AUTO_SET_IO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CONF_AUTO_SET_IO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh14:
	adrp	x8, _airo_cs_config_check@GOTPAGE
Lloh15:
	ldr	x8, [x8, _airo_cs_config_check@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_pcmcia_loop_config
	cbz	w0, LBB0_3
LBB0_1:
	mov	x0, x19
	bl	_airo_release
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_1
; %bb.4:
	mov	x0, x19
	bl	_pcmcia_enable_device
	cbnz	w0, LBB0_1
; %bb.5:
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	w2, #1
	mov	x3, x20
	bl	_init_airo_card
	ldr	x8, [x19, #8]
	str	w0, [x8]
	cbz	w0, LBB0_1
; %bb.6:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"airo_config\n"

	.comm	_CONF_ENABLE_IRQ,4,2            ; @CONF_ENABLE_IRQ
	.comm	_CONF_AUTO_SET_VPP,4,2          ; @CONF_AUTO_SET_VPP
	.comm	_CONF_AUTO_AUDIO,4,2            ; @CONF_AUTO_AUDIO
	.comm	_CONF_AUTO_SET_IO,4,2           ; @CONF_AUTO_SET_IO
	.comm	_airo_cs_config_check,4,2       ; @airo_cs_config_check
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_airo_config
.subsections_via_symbols
