	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00queue_alloc_rxskb        ## -- Begin function rt2x00queue_alloc_rxskb
	.p2align	4, 0x90
_rt2x00queue_alloc_rxskb:               ## @rt2x00queue_alloc_rxskb
	.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), %rax
	movq	16(%rax), %r14
	movl	4(%rax), %r13d
	addl	(%rax), %r13d
	addl	8(%rax), %r13d
	movq	%r14, %rdi
	callq	_rt2x00_has_cap_hw_crypto
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	leal	4(%r13,%rbx,8), %eax
	leal	(%rax,%rbx,8), %edi
	movl	%r15d, %esi
	callq	___dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	leal	4(,%rbx,8), %esi
	movq	%rax, %rdi
	callq	_skb_reserve
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	movq	%r12, %rdi
	callq	_get_skb_frame_desc
	movq	%rax, %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_REQUIRE_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_has_cap_flag
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	(%r14), %edi
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	%eax, %ebx
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_3:
	movl	%ebx, 4(%r15)
	movq	_SKBDESC_DMA_MAPPED_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_6:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQUIRE_DMA,4,2                ## @REQUIRE_DMA
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_SKBDESC_DMA_MAPPED_RX,4,2      ## @SKBDESC_DMA_MAPPED_RX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00queue_alloc_rxskb        ; -- Begin function rt2x00queue_alloc_rxskb
	.p2align	2
_rt2x00queue_alloc_rxskb:               ; @rt2x00queue_alloc_rxskb
	.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
	ldr	x8, [x0]
	ldr	x20, [x8, #16]
	ldp	w9, w10, [x8]
	ldr	w8, [x8, #8]
	add	w9, w10, w9
	add	w21, w9, w8
	mov	x0, x20
	bl	_rt2x00_has_cap_hw_crypto
	cmp	x0, #0
	cset	w8, ne
	mov	w9, #12
	mov	w10, #4
	csel	w22, w10, w9, eq
	add	w9, w22, w21
	add	w0, w9, w8, lsl #3
	mov	x1, x19
	bl	___dev_alloc_skb
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_skb_reserve
	mov	x0, x19
	mov	x1, x21
	bl	_skb_put
	mov	x0, x19
	bl	_get_skb_frame_desc
	mov	x21, x0
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _REQUIRE_DMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQUIRE_DMA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_has_cap_flag
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x20]
	ldp	w2, w1, [x19]
Lloh3:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_dma_map_single
	mov	x22, x0
	ldr	w0, [x20]
	mov	x1, x22
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	x19, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _SKBDESC_DMA_MAPPED_RX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SKBDESC_DMA_MAPPED_RX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	stp	w8, w22, [x21]
LBB0_5:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REQUIRE_DMA,4,2                ; @REQUIRE_DMA
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_SKBDESC_DMA_MAPPED_RX,4,2      ; @SKBDESC_DMA_MAPPED_RX
.subsections_via_symbols
