	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function pio_tx_packet
LCPI0_0:
	.quad	1                               ## 0x1
	.space	8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_pio_tx_packet:                         ## @pio_tx_packet
	.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), %r15
	movq	16(%rdi), %rbx
	movq	(%r15), %r12
	addq	$4, %r12
	cmpq	%r12, (%rbx)
	jge	LBB0_2
## %bb.1:
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43legacywarn
LBB0_6:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_free_txpacket
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	8(%rbx), %rax
	movq	_B43legacy_PIO_MAXTXDEVQPACKETS@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setg	%dil
	callq	_B43legacy_WARN_ON
	movq	16(%rbx), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setg	%dil
	callq	_B43legacy_WARN_ON
	movq	8(%rbx), %rax
	cmpq	(%r13), %rax
	je	LBB0_3
## %bb.4:
	movq	16(%rbx), %rax
	addq	%r12, %rax
	cmpq	(%rbx), %rax
	jle	LBB0_5
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	$4, %ecx
	callq	_pio_tx_write_fragment
	movq	_ENOKEY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	addl	(%rcx), %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <1,u>
	pinsrq	$1, %r12, %xmm0
	movdqu	8(%rbx), %xmm1
	paddq	%xmm1, %xmm0
	movdqu	%xmm0, 8(%rbx)
	addq	$24, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_list_move_tail
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PIO queue too small. Dropping packet.\n"

	.comm	_B43legacy_PIO_MAXTXDEVQPACKETS,8,3 ## @B43legacy_PIO_MAXTXDEVQPACKETS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENOKEY,4,2                     ## @ENOKEY
	.no_dead_strip	_pio_tx_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pio_tx_packet
_pio_tx_packet:                         ; @pio_tx_packet
	.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
	ldp	x21, x20, [x0, #8]
	ldr	x8, [x21]
	add	x22, x8, #4
	ldr	x8, [x20]
	cmp	x8, x22
	b.ge	LBB0_4
; %bb.1:
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43legacywarn
LBB0_2:
	mov	x0, x19
	mov	w1, #1
	bl	_free_txpacket
LBB0_3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x23, _B43legacy_PIO_MAXTXDEVQPACKETS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _B43legacy_PIO_MAXTXDEVQPACKETS@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w0, gt
	bl	_B43legacy_WARN_ON
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, gt
	bl	_B43legacy_WARN_ON
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	add	x8, x8, x22
	cmp	x8, x9
	b.le	LBB0_8
LBB0_6:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
LBB0_8:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w3, #4
	bl	_pio_tx_write_fragment
Lloh7:
	adrp	x8, _ENOKEY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOKEY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w0, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.9:
	ldp	x8, x9, [x20, #8]
	add	x8, x8, #1
	add	x9, x9, x22
	stp	x8, x9, [x20, #8]
	add	x1, x20, #24
	mov	x0, x19
	bl	_list_move_tail
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PIO queue too small. Dropping packet.\n"

	.comm	_B43legacy_PIO_MAXTXDEVQPACKETS,8,3 ; @B43legacy_PIO_MAXTXDEVQPACKETS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENOKEY,4,2                     ; @ENOKEY
	.no_dead_strip	_pio_tx_packet
.subsections_via_symbols
