	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_tx_fragment
_dma_tx_fragment:                       ## @dma_tx_fragment
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	24(%rdi), %r15
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_b43_get_priv_tx_info
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	8(%r14), %edi
	callq	_b43_txhdr_size
	movq	%rax, %r13
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_request_slot
	movl	%eax, %ebx
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	callq	*16(%r15)
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_TX_SLOTS_PER_FRAME@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
	movslq	%eax, %r15
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	imulq	%r13, %r15
	shlq	$2, %r15
	addq	16(%r14), %r15
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_generate_cookie
	movl	%eax, %r13d
	movl	8(%r14), %edi
	movq	%r15, %rsi
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movq	%r12, %rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r8d
	callq	_b43_generate_txhdr
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	jmp	LBB0_13
LBB0_2:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%r13d, -76(%rbp)                ## 4-byte Spill
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_map_descbuffer
	movq	-64(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_b43_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_4:
	movq	-64(%rbp), %rax
	movq	8(%rax), %rdx
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rcx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	*8(%rbx)
	movq	%r14, %rdi
	callq	_request_slot
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	*16(%rbx)
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	-56(%rbp), %rax
	movq	%r13, 16(%rax)
	movl	$1, (%rax)
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	$0, (%rbx)
	movq	(%r13), %rsi
	movq	8(%r13), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_map_descbuffer
	movq	-56(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%r13), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$1, %ecx
	callq	_b43_dma_mapping_error
	testq	%rax, %rax
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_10
## %bb.5:
	movq	(%r13), %rdi
	movq	8(%r13), %rsi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movq	_GFP_DMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_kmemdup
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	8(%r13), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$1, %ecx
	callq	_map_descbuffer
	movq	-56(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%r13), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$1, %ecx
	callq	_b43_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	(%rbx), %rdi
	callq	_kfree
	movq	$0, (%rbx)
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	movq	-56(%rbp), %rax
	movq	8(%rax), %rdx
	movq	8(%r13), %rcx
	movl	$1, (%rsp)
	movq	%r12, %r15
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	xorl	%r8d, %r8d
	movl	$1, %r9d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	callq	*8(%rbx)
	movq	_IEEE80211_TX_CTL_SEND_AFTER_DTIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_12
## %bb.11:
	movl	8(%r14), %edi
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_SHM_SH_MCASTCOOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	callq	_b43_shm_write16
LBB0_12:
	xorl	%eax, %eax
	callq	_wmb
	movq	(%rbx), %rbx
	movq	%r14, %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_next_slot
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	*%rbx
	jmp	LBB0_13
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r14)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%r14)
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	-64(%rbp), %rax
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_unmap_descbuffer
LBB0_13:
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_SLOTS_PER_FRAME,4,2         ## @TX_SLOTS_PER_FRAME
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_GFP_DMA,4,2                    ## @GFP_DMA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IEEE80211_TX_CTL_SEND_AFTER_DTIM,4,2 ## @IEEE80211_TX_CTL_SEND_AFTER_DTIM
	.comm	_B43_SHM_SHARED,4,2             ## @B43_SHM_SHARED
	.comm	_B43_SHM_SH_MCASTCOOKIE,4,2     ## @B43_SHM_SH_MCASTCOOKIE
	.no_dead_strip	_dma_tx_fragment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_tx_fragment
_dma_tx_fragment:                       ; @dma_tx_fragment
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x19, x0
	ldr	x25, [x0, #24]
	mov	x0, x1
	bl	_IEEE80211_SKB_CB
	mov	x20, x0
	bl	_b43_get_priv_tx_info
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w0, [x19, #8]
	bl	_b43_txhdr_size
	mov	x21, x0
	ldp	w28, w23, [x19]
	mov	x0, x19
	bl	_request_slot
	mov	x24, x0
	ldr	x8, [x25, #16]
	add	x2, sp, #32
	mov	x0, x19
	mov	x1, x24
	blr	x8
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x0, [sp, #32]
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _TX_SLOTS_PER_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_SLOTS_PER_FRAME@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh2:
	ldr	w8, [x8]
	sdiv	w8, w24, w8
	sxtw	x8, w8
	mul	x8, x21, x8
	add	x27, x9, x8, lsl #2
	mov	x0, x19
	mov	x1, x24
	bl	_generate_cookie
	mov	x24, x0
	ldr	w0, [x19, #8]
	mov	x1, x27
	mov	x2, x22
	mov	x3, x20
	mov	x4, x24
	bl	_b43_generate_txhdr
	mov	x26, x0
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	stp	w28, w23, [x19]
	b	LBB0_13
LBB0_2:
	mov	x26, x22
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	ldp	x22, x20, [sp, #16]             ; 16-byte Folded Reload
	mov	x0, x19
	mov	x1, x27
	mov	x2, x21
	mov	w3, #1
	bl	_map_descbuffer
	mov	x1, x0
	ldr	x8, [sp, #32]
	str	x0, [x8, #8]
	mov	x0, x19
	mov	x2, x21
	mov	w3, #1
	bl	_b43_dma_mapping_error
	cbz	x0, LBB0_4
; %bb.3:
	stp	w28, w23, [x19]
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_13
LBB0_4:
	mov	x3, x21
	mov	x21, x25
	ldr	x8, [x25, #8]
	ldr	x9, [sp, #32]
	ldr	x2, [x9, #8]
	mov	x0, x19
	mov	x1, x22
	str	x3, [sp, #16]                   ; 8-byte Folded Spill
	mov	w4, #1
	mov	w5, #0
	mov	w6, #0
	blr	x8
	mov	x0, x19
	bl	_request_slot
	mov	x25, x0
	ldr	x8, [x21, #16]
	add	x2, sp, #40
	mov	x0, x19
	mov	x1, x25
	blr	x8
	mov	x27, x0
	ldr	x0, [sp, #40]
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [sp, #40]
	mov	x22, x26
	str	x26, [x8, #16]
	mov	w9, #1
	str	w9, [x8]
	str	xzr, [x20]
	ldp	x1, x2, [x26]
	mov	x0, x19
	mov	w3, #1
	bl	_map_descbuffer
	mov	x1, x0
	ldr	x8, [sp, #40]
	str	x0, [x8, #8]
	ldr	x2, [x26, #8]
	mov	x0, x19
	mov	w3, #1
	bl	_b43_dma_mapping_error
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x0, LBB0_8
; %bb.5:
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
	ldp	x0, x1, [x22]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _GFP_DMA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GFP_DMA@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_kmemdup
	str	x0, [x20]
	cbz	x0, LBB0_11
; %bb.6:
	mov	x1, x0
	ldr	x2, [x22, #8]
	mov	x0, x19
	mov	w3, #1
	bl	_map_descbuffer
	mov	x1, x0
	ldr	x8, [sp, #40]
	str	x0, [x8, #8]
	ldr	x2, [x22, #8]
	mov	x0, x19
	mov	w3, #1
	bl	_b43_dma_mapping_error
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20]
	bl	_kfree
	str	xzr, [x20]
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	ldr	x8, [x21, #8]
	ldr	x9, [sp, #40]
	ldr	x2, [x9, #8]
	ldr	x3, [x22, #8]
	mov	x0, x19
	mov	x1, x27
	mov	w4, #0
	mov	w5, #1
	mov	w6, #1
	blr	x8
	ldr	w8, [x26]
Lloh14:
	adrp	x9, _IEEE80211_TX_CTL_SEND_AFTER_DTIM@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IEEE80211_TX_CTL_SEND_AFTER_DTIM@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x19, #8]
Lloh17:
	adrp	x8, _B43_SHM_SHARED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _B43_SHM_SHARED@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _B43_SHM_SH_MCASTCOOKIE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _B43_SHM_SH_MCASTCOOKIE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x3, x24
	bl	_b43_shm_write16
LBB0_10:
	bl	_wmb
	ldr	x20, [x21]
	mov	x0, x19
	mov	x1, x25
	bl	_next_slot
	mov	x1, x0
	mov	x0, x19
	blr	x20
	mov	w26, #0
	b	LBB0_13
LBB0_11:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	stp	w28, w23, [x19]
	ldr	w8, [x8]
	neg	w26, w8
	ldr	x8, [sp, #32]
	ldr	x1, [x8, #8]
	mov	x0, x19
	ldr	x2, [sp, #16]                   ; 8-byte Folded Reload
	mov	w3, #1
	bl	_unmap_descbuffer
LBB0_13:
	mov	x0, x26
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_SLOTS_PER_FRAME,4,2         ; @TX_SLOTS_PER_FRAME
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_GFP_DMA,4,2                    ; @GFP_DMA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IEEE80211_TX_CTL_SEND_AFTER_DTIM,4,2 ; @IEEE80211_TX_CTL_SEND_AFTER_DTIM
	.comm	_B43_SHM_SHARED,4,2             ; @B43_SHM_SHARED
	.comm	_B43_SHM_SH_MCASTCOOKIE,4,2     ; @B43_SHM_SH_MCASTCOOKIE
	.no_dead_strip	_dma_tx_fragment
.subsections_via_symbols
