	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b44_alloc_consistent
_b44_alloc_consistent:                  ## @b44_alloc_consistent
	.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
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	_B44_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	callq	_kzalloc
	movq	%rax, 56(%r13)
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	_B44_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	movl	%r15d, %esi
	callq	_kzalloc
	movq	%rax, 48(%r13)
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	_DMA_TABLE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movslq	%ebx, %r14
	movq	24(%r13), %rax
	movl	(%rax), %edi
	leaq	32(%r13), %rdx
	movl	%r14d, %esi
	movl	%r15d, %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 40(%r13)
	testq	%rax, %rax
	je	LBB0_3
LBB0_7:
	movq	24(%r13), %rax
	movl	(%rax), %edi
	leaq	8(%r13), %rdx
	movl	%r14d, %esi
	movl	%r15d, %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 16(%r13)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.8:
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%rax, %r12
	movq	24(%r13), %rax
	movl	(%rax), %edi
	movq	_DMA_TABLE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	callq	_dma_map_single
	movq	%rax, %r15
	movq	24(%r13), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	addq	%r15, %r14
	movl	$30, %edi
	callq	_DMA_BIT_MASK
	cmpq	%rax, %r14
	jg	LBB0_12
## %bb.11:
	movq	%r12, 16(%r13)
	movq	%r15, 8(%r13)
	movq	_B44_FLAG_TX_RING_HACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	jmp	LBB0_14
LBB0_3:
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %r12
	movq	24(%r13), %rax
	movl	(%rax), %edi
	movq	_DMA_TABLE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	callq	_dma_map_single
	movq	%rax, %rbx
	movq	24(%r13), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:
	leaq	(%rbx,%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$30, %edi
	callq	_DMA_BIT_MASK
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jle	LBB0_6
LBB0_12:
	movq	%r12, %rdi
	callq	_kfree
LBB0_13:
	movq	%r13, %rdi
	callq	_b44_free_consistent
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, 40(%r13)
	movq	%rbx, 32(%r13)
	movq	_B44_FLAG_RX_RING_HACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_B44_RX_RING_SIZE,4,2           ## @B44_RX_RING_SIZE
	.comm	_B44_TX_RING_SIZE,4,2           ## @B44_TX_RING_SIZE
	.comm	_DMA_TABLE_BYTES,4,2            ## @DMA_TABLE_BYTES
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_B44_FLAG_RX_RING_HACK,4,2      ## @B44_FLAG_RX_RING_HACK
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_B44_FLAG_TX_RING_HACK,4,2      ## @B44_FLAG_TX_RING_HACK
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_b44_alloc_consistent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b44_alloc_consistent
_b44_alloc_consistent:                  ; @b44_alloc_consistent
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _B44_RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B44_RX_RING_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w0, w8, #2
	bl	_kzalloc
	str	x0, [x19, #56]
	cbz	x0, LBB0_13
; %bb.1:
Lloh3:
	adrp	x8, _B44_TX_RING_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B44_TX_RING_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w0, w8, #2
	mov	x1, x21
	bl	_kzalloc
	str	x0, [x19, #48]
	cbz	x0, LBB0_13
; %bb.2:
Lloh6:
	adrp	x24, _DMA_TABLE_BYTES@GOTPAGE
Lloh7:
	ldr	x24, [x24, _DMA_TABLE_BYTES@GOTPAGEOFF]
	ldr	w1, [x24]
	sxtw	x20, w1
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	add	x2, x19, #32
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x3, x21
	bl	_dma_alloc_coherent
	str	x0, [x19, #40]
	cbz	x0, LBB0_5
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	add	x2, x19, #8
	mov	x1, x20
	mov	x3, x21
	bl	_dma_alloc_coherent
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.4:
	mov	w0, #0
	b	LBB0_14
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.6:
	mov	x22, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	ldr	w2, [x24]
Lloh8:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x1, x22
	bl	_dma_map_single
	mov	x23, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	mov	x1, x23
	bl	_dma_mapping_error
	cbnz	x0, LBB0_12
; %bb.7:
	add	x25, x23, x20
	mov	w0, #30
	bl	_DMA_BIT_MASK
	cmp	x25, x0
	b.gt	LBB0_12
; %bb.8:
	stp	x23, x22, [x19, #32]
Lloh11:
	adrp	x8, _B44_FLAG_RX_RING_HACK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B44_FLAG_RX_RING_HACK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_3
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.10:
	mov	x22, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	ldr	w2, [x24]
Lloh14:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x1, x22
	bl	_dma_map_single
	mov	x21, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_dma_mapping_error
	cbnz	x0, LBB0_12
; %bb.11:
	add	x20, x21, x20
	mov	w0, #30
	bl	_DMA_BIT_MASK
	cmp	x20, x0
	b.le	LBB0_15
LBB0_12:
	mov	x0, x22
	bl	_kfree
LBB0_13:
	mov	x0, x19
	bl	_b44_free_consistent
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	w0, #0
	stp	x21, x22, [x19, #8]
Lloh20:
	adrp	x8, _B44_FLAG_TX_RING_HACK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _B44_FLAG_TX_RING_HACK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_B44_RX_RING_SIZE,4,2           ; @B44_RX_RING_SIZE
	.comm	_B44_TX_RING_SIZE,4,2           ; @B44_TX_RING_SIZE
	.comm	_DMA_TABLE_BYTES,4,2            ; @DMA_TABLE_BYTES
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_B44_FLAG_RX_RING_HACK,4,2      ; @B44_FLAG_RX_RING_HACK
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_B44_FLAG_TX_RING_HACK,4,2      ; @B44_FLAG_TX_RING_HACK
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_b44_alloc_consistent
.subsections_via_symbols
