	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00queue_unmap_skb          ## -- Begin function rt2x00queue_unmap_skb
	.p2align	4, 0x90
_rt2x00queue_unmap_skb:                 ## @rt2x00queue_unmap_skb
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	callq	_get_skb_frame_desc
	movq	%rax, %r15
	movl	(%rax), %eax
	movq	_SKBDESC_DMA_MAPPED_RX@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.1:
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_SKBDESC_DMA_MAPPED_TX@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.3:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	4(%r15), %esi
	movq	(%rbx), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_dma_unmap_single
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%r15)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SKBDESC_DMA_MAPPED_RX,4,2      ## @SKBDESC_DMA_MAPPED_RX
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_SKBDESC_DMA_MAPPED_TX,4,2      ## @SKBDESC_DMA_MAPPED_TX
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00queue_unmap_skb          ; -- Begin function rt2x00queue_unmap_skb
	.p2align	2
_rt2x00queue_unmap_skb:                 ; @rt2x00queue_unmap_skb
	.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	x20, x0
	ldp	x0, x8, [x0]
	ldr	x8, [x8]
	ldr	x21, [x8]
	bl	_get_skb_frame_desc
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _SKBDESC_DMA_MAPPED_RX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SKBDESC_DMA_MAPPED_RX@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh4:
	adrp	x22, _SKBDESC_DMA_MAPPED_TX@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SKBDESC_DMA_MAPPED_TX@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x19, #4]
	ldr	x9, [x20]
	ldr	w2, [x9]
	ldr	w3, [x8]
	mov	x0, x21
	bl	_dma_unmap_single
	ldr	w8, [x22]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SKBDESC_DMA_MAPPED_RX,4,2      ; @SKBDESC_DMA_MAPPED_RX
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_SKBDESC_DMA_MAPPED_TX,4,2      ; @SKBDESC_DMA_MAPPED_TX
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
.subsections_via_symbols
