	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function airo_open
_airo_open:                             ## @airo_open
	.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, %r14
	movq	8(%rdi), %r12
	movq	_FLAG_FLASHING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_2:
	movq	_FLAG_COMMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_disable_MAC
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_writeConfigRid
LBB0_4:
	cmpq	%r14, 16(%r12)
	je	LBB0_10
## %bb.5:
	movq	_JOB_DIE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	8(%r12), %r15
	movq	%r15, %rsi
	callq	_clear_bit
	movq	_airo_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rsi
	callq	_kthread_run
	movl	%eax, 4(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	4(%r12), %edi
	callq	_PTR_ERR
	movq	%rax, %rbx
	jmp	LBB0_11
LBB0_7:
	movq	_airo_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %edi
	movl	4(%r14), %ecx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movl	(%r14), %edx
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	callq	_airo_print_err
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movl	4(%r12), %edi
	callq	_kthread_stop
	jmp	LBB0_11
LBB0_9:
	movq	_FLAG_RADIO_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	%r12, %rdi
	callq	_enable_interrupts
	movq	%r12, %rdi
	callq	_try_auto_wep
LBB0_10:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_enable_MAC
	movq	%r14, %rdi
	callq	_netif_start_queue
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_FLASHING,4,2              ## @FLAG_FLASHING
	.comm	_EIO,4,2                        ## @EIO
	.comm	_FLAG_COMMIT,4,2                ## @FLAG_COMMIT
	.comm	_JOB_DIE,4,2                    ## @JOB_DIE
	.comm	_airo_thread,4,2                ## @airo_thread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_airo_interrupt,4,2             ## @airo_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"register interrupt %d failed, rc %d"

	.comm	_FLAG_RADIO_DOWN,4,2            ## @FLAG_RADIO_DOWN
	.no_dead_strip	_airo_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function airo_open
_airo_open:                             ; @airo_open
	.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	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _FLAG_FLASHING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAG_FLASHING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_2:
Lloh6:
	adrp	x8, _FLAG_COMMIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLAG_COMMIT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_disable_MAC
	mov	x0, x19
	mov	w1, #1
	bl	_writeConfigRid
LBB0_4:
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.eq	LBB0_10
; %bb.5:
Lloh9:
	adrp	x23, _JOB_DIE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _JOB_DIE@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x21, x19, #8
	mov	x1, x21
	bl	_clear_bit
Lloh11:
	adrp	x8, _airo_thread@GOTPAGE
Lloh12:
	ldr	x8, [x8, _airo_thread@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w3, [x20, #4]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	bl	_kthread_run
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #4]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_11
LBB0_7:
Lloh16:
	adrp	x8, _airo_interrupt@GOTPAGE
Lloh17:
	ldr	x8, [x8, _airo_interrupt@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	ldp	w0, w3, [x20]
	mov	x4, x20
	bl	_request_irq
	cbz	w0, LBB0_9
; %bb.8:
	mov	x22, x0
	ldp	w2, w0, [x20]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x22
	bl	_airo_print_err
	ldr	w0, [x23]
	mov	x1, x21
	bl	_set_bit
	ldr	w0, [x19, #4]
	bl	_kthread_stop
	b	LBB0_11
LBB0_9:
Lloh24:
	adrp	x8, _FLAG_RADIO_DOWN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FLAG_RADIO_DOWN@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
	mov	x0, x19
	bl	_enable_interrupts
	mov	x0, x19
	bl	_try_auto_wep
LBB0_10:
	mov	x0, x19
	mov	w1, #1
	bl	_enable_MAC
	mov	x0, x20
	bl	_netif_start_queue
	mov	w22, #0
LBB0_11:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_FLASHING,4,2              ; @FLAG_FLASHING
	.comm	_EIO,4,2                        ; @EIO
	.comm	_FLAG_COMMIT,4,2                ; @FLAG_COMMIT
	.comm	_JOB_DIE,4,2                    ; @JOB_DIE
	.comm	_airo_thread,4,2                ; @airo_thread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_airo_interrupt,4,2             ; @airo_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"register interrupt %d failed, rc %d"

	.comm	_FLAG_RADIO_DOWN,4,2            ; @FLAG_RADIO_DOWN
	.no_dead_strip	_airo_open
.subsections_via_symbols
