	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_unmap_desc_data
_xlgmac_unmap_desc_data:                ## @xlgmac_unmap_desc_data
	.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, %rbx
	movq	%rdi, %r14
	movq	184(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	leaq	176(%rbx), %r15
	cmpq	$0, 32(%rbx)
	movl	(%r14), %edi
	movq	176(%rbx), %rdx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	je	LBB0_3
## %bb.2:
	callq	_dma_unmap_page
	jmp	LBB0_4
LBB0_3:
	callq	_dma_unmap_single
LBB0_4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
LBB0_5:
	movq	168(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_dev_kfree_skb_any
	movq	$0, 168(%rbx)
LBB0_7:
	movq	96(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_put_page
LBB0_9:
	cmpq	$0, 72(%rbx)
	je	LBB0_11
## %bb.10:
	movl	(%r14), %edi
	movq	80(%rbx), %rdx
	movq	88(%rbx), %rsi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_page
	movq	72(%rbx), %rdi
	callq	_put_page
LBB0_11:
	leaq	40(%rbx), %r15
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_put_page
LBB0_13:
	cmpq	$0, (%r15)
	je	LBB0_15
## %bb.14:
	movl	(%r14), %edi
	movq	48(%rbx), %rdx
	movq	56(%rbx), %rsi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_page
	movq	40(%rbx), %rdi
	callq	_put_page
LBB0_15:
	leaq	104(%rbx), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	$0, 32(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_17
## %bb.16:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movups	%xmm0, (%rbx)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_xlgmac_unmap_desc_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_unmap_desc_data
_xlgmac_unmap_desc_data:                ; @xlgmac_unmap_desc_data
	.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, x1
	mov	x20, x0
	ldr	x1, [x1, #184]
	cbz	x1, LBB0_5
; %bb.1:
	mov	x21, x19
	ldr	x2, [x21, #176]!
	ldur	x8, [x21, #-144]
	ldr	w0, [x20]
Lloh0:
	adrp	x9, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	cbz	x8, LBB0_3
; %bb.2:
	bl	_dma_unmap_page
	b	LBB0_4
LBB0_3:
	bl	_dma_unmap_single
LBB0_4:
	stp	xzr, xzr, [x21]
LBB0_5:
	ldr	x0, [x19, #168]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_dev_kfree_skb_any
	str	xzr, [x19, #168]
LBB0_7:
	ldr	x0, [x19, #96]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_put_page
LBB0_9:
	ldr	x8, [x19, #72]
Lloh3:
	adrp	x22, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DMA_FROM_DEVICE@GOTPAGEOFF]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w0, [x20]
	ldp	x2, x1, [x19, #80]
	ldr	w3, [x22]
	bl	_dma_unmap_page
	ldr	x0, [x19, #72]
	bl	_put_page
LBB0_11:
	add	x21, x19, #40
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_put_page
LBB0_13:
	ldr	x8, [x21]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	w0, [x20]
	ldp	x2, x1, [x19, #48]
	ldr	w3, [x22]
	bl	_dma_unmap_page
	ldr	x0, [x19, #40]
	bl	_put_page
LBB0_15:
	add	x0, x19, #104
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	mov	x0, x21
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	str	xzr, [x19, #32]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_17
; %bb.16:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19]
LBB0_17:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_xlgmac_unmap_desc_data
.subsections_via_symbols
