	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reset_airo_card                ## -- Begin function reset_airo_card
	.p2align	4, 0x90
_reset_airo_card:                       ## @reset_airo_card
	.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
	movl	$1, %esi
	callq	_reset_card
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_setup_card
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	movl	4(%r14), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_airo_print_info
	movq	_FLAG_MPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	_MAX_FIDS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	movq	_AIRO_DEF_MTU@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	xorl	%edx, %edx
	cmpq	%rax, %rbx
	setge	%dl
	movq	%r12, %rdi
	callq	_transmit_allocate
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	%r12, %rdi
	callq	_enable_interrupts
	movq	%r14, %rdi
	callq	_netif_wake_queue
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rsi
	callq	_airo_print_err
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC could not be enabled"

L_.str.1:                               ## @.str.1
	.asciz	"MAC enabled %pM"

	.comm	_FLAG_MPI,4,2                   ## @FLAG_MPI
	.comm	_MAX_FIDS,4,2                   ## @MAX_FIDS
	.comm	_AIRO_DEF_MTU,4,2               ## @AIRO_DEF_MTU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reset_airo_card                ; -- Begin function reset_airo_card
	.p2align	2
_reset_airo_card:                       ; @reset_airo_card
	.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, #8]
	mov	w1, #1
	bl	_reset_card
	cbnz	x0, LBB0_8
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x20
	mov	w2, #1
	bl	_setup_card
	mov	x8, x0
Lloh0:
	adrp	x9, _SUCCESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x19, #4]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldr	w2, [x19]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_airo_print_info
Lloh5:
	adrp	x8, _FLAG_MPI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FLAG_MPI@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_test_bit
	cbnz	w0, LBB0_6
; %bb.3:
Lloh8:
	adrp	x21, _MAX_FIDS@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MAX_FIDS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
Lloh10:
	adrp	x23, _AIRO_DEF_MTU@GOTPAGE
Lloh11:
	ldr	x23, [x23, _AIRO_DEF_MTU@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	x22, w8, sxtw
	cset	w2, ge
	mov	x0, x20
	bl	_transmit_allocate
	ldr	x8, [x20]
	str	w0, [x8, x22, lsl #2]
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_6:
	mov	x0, x20
	bl	_enable_interrupts
	mov	x0, x19
	bl	_netif_wake_queue
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_airo_print_err
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC could not be enabled"

l_.str.1:                               ; @.str.1
	.asciz	"MAC enabled %pM"

	.comm	_FLAG_MPI,4,2                   ; @FLAG_MPI
	.comm	_MAX_FIDS,4,2                   ; @MAX_FIDS
	.comm	_AIRO_DEF_MTU,4,2               ; @AIRO_DEF_MTU
.subsections_via_symbols
