	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_setup_pioqueue
_b43legacy_setup_pioqueue:              ## @b43legacy_setup_pioqueue
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, 40(%rax)
	movq	%r15, 16(%rax)
	movq	8(%r14), %rax
	xorl	%ecx, %ecx
	cmpl	$3, (%rax)
	setl	%cl
	movl	%ecx, (%rbx)
	leaq	36(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	_tx_tasklet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_tasklet_init
	movq	_B43legacy_MMIO_MACCTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_b43legacy_read32
	movq	_B43legacy_MACCTL_BE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_b43legacy_write32
	movq	_B43legacy_PIO_TXQBUFSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_b43legacy_read16
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_B43legacy_PIO_TXQADJUST@GOTPCREL(%rip), %rdx
	movq	%rax, %rcx
	subq	(%rdx), %rcx
	jle	LBB0_6
## %bb.3:
	movq	%rcx, 8(%rbx)
	movq	%rbx, %rdi
	callq	_setup_txqueues
	jmp	LBB0_9
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_b43legacyerr
	jmp	LBB0_7
LBB0_6:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_b43legacyerr
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_tx_tasklet,4,2                 ## @tx_tasklet
	.comm	_B43legacy_MMIO_MACCTL,4,2      ## @B43legacy_MMIO_MACCTL
	.comm	_B43legacy_MACCTL_BE,4,2        ## @B43legacy_MACCTL_BE
	.comm	_B43legacy_PIO_TXQBUFSIZE,8,3   ## @B43legacy_PIO_TXQBUFSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This card does not support PIO operation mode. Please use DMA mode (module parameter pio=0).\n"

	.comm	_B43legacy_PIO_TXQADJUST,8,3    ## @B43legacy_PIO_TXQADJUST
L_.str.1:                               ## @.str.1
	.asciz	"PIO tx device-queue too small (%u)\n"

	.no_dead_strip	_b43legacy_setup_pioqueue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_setup_pioqueue
_b43legacy_setup_pioqueue:              ; @b43legacy_setup_pioqueue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	str	x20, [x19, #40]
	str	x21, [x19, #16]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cmp	w8, #3
	cset	w8, lt
	str	w8, [x19]
	add	x0, x19, #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	add	x0, x19, #28
	bl	_INIT_LIST_HEAD
	add	x0, x19, #24
Lloh3:
	adrp	x8, _tx_tasklet@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tx_tasklet@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_tasklet_init
Lloh6:
	adrp	x21, _B43legacy_MMIO_MACCTL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _B43legacy_MMIO_MACCTL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_b43legacy_read32
Lloh8:
	adrp	x8, _B43legacy_MACCTL_BE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B43legacy_MACCTL_BE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x20
	bl	_b43legacy_write32
	ldr	x8, [x19, #16]
Lloh11:
	adrp	x9, _B43legacy_PIO_TXQBUFSIZE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _B43legacy_PIO_TXQBUFSIZE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_b43legacy_read16
	cbz	x0, LBB0_4
; %bb.2:
Lloh14:
	adrp	x8, _B43legacy_PIO_TXQADJUST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _B43legacy_PIO_TXQADJUST@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	subs	x8, x0, x8
	b.le	LBB0_5
; %bb.3:
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_setup_txqueues
	b	LBB0_7
LBB0_4:
	ldr	w0, [x20]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w8, [x20]
	str	x0, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
LBB0_6:
	bl	_b43legacyerr
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_tx_tasklet,4,2                 ; @tx_tasklet
	.comm	_B43legacy_MMIO_MACCTL,4,2      ; @B43legacy_MMIO_MACCTL
	.comm	_B43legacy_MACCTL_BE,4,2        ; @B43legacy_MACCTL_BE
	.comm	_B43legacy_PIO_TXQBUFSIZE,8,3   ; @B43legacy_PIO_TXQBUFSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This card does not support PIO operation mode. Please use DMA mode (module parameter pio=0).\n"

	.comm	_B43legacy_PIO_TXQADJUST,8,3    ; @B43legacy_PIO_TXQADJUST
l_.str.1:                               ; @.str.1
	.asciz	"PIO tx device-queue too small (%u)\n"

	.no_dead_strip	_b43legacy_setup_pioqueue
.subsections_via_symbols
