	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipwireless_do_tasklet
_ipwireless_do_tasklet:                 ## @ipwireless_do_tasklet
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 8(%r12)
	je	LBB0_1
## %bb.5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_1:
	cmpl	$1, (%r12)
	jne	LBB0_2
## %bb.6:
	movl	$2, (%r12)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	callq	_ipw_setup_hardware
	movq	%r12, %rdi
	callq	_ipw_send_setup_packet
	movq	_PRIO_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%esi
	movq	%r12, %rdi
	callq	_send_pending_packet
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_packets_from_hw            ## TAILCALL
LBB0_2:
	movq	%r12, %rdi
	callq	_get_current_packet_priority
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_send_pending_packet
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_get_packets_from_hw
	orl	%ebx, %eax
	jne	LBB0_3
## %bb.4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRIO_SETUP,4,2                 ## @PRIO_SETUP
	.no_dead_strip	_ipwireless_do_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipwireless_do_tasklet
_ipwireless_do_tasklet:                 ; @ipwireless_do_tasklet
	.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
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	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
	b	_spin_unlock_irqrestore
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #2
	str	w8, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_ipw_setup_hardware
	mov	x0, x19
	bl	_ipw_send_setup_packet
Lloh0:
	adrp	x8, _PRIO_SETUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRIO_SETUP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w1, w8, #1
	mov	x0, x19
	bl	_send_pending_packet
	mov	x0, x19
	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
	b	_get_packets_from_hw
LBB0_4:
	mov	x0, x19
	bl	_get_current_packet_priority
	mov	x21, x0
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_send_pending_packet
	mov	x20, x0
	mov	x0, x19
	bl	_get_packets_from_hw
	orr	w8, w0, w20
	cbnz	w8, LBB0_5
; %bb.6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PRIO_SETUP,4,2                 ; @PRIO_SETUP
	.no_dead_strip	_ipwireless_do_tasklet
.subsections_via_symbols
