	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76u_build_rx_skb
_mt76u_build_rx_skb:                    ## @mt76u_build_rx_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	%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	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r12
	movl	%edx, %edi
	callq	_SKB_WITH_OVERHEAD
	movq	_MT_DMA_HDR_LEN@GOTPCREL(%rip), %rcx
	movslq	%r13d, %r15
	movq	(%rcx), %rcx
	addq	%r15, %rcx
	cmpq	%rcx, %rax
	jge	LBB0_3
## %bb.1:
	movq	_MT_SKB_HEAD_LEN@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movq	_MT_DMA_HDR_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movq	(%r13), %rdx
	movq	%r14, %rdi
	callq	_skb_put_data
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rbx
	movq	_MT_DMA_HDR_LEN@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	addq	%r12, %rbx
	movq	%rbx, %rdi
	callq	_virt_to_head_page
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_skb_shinfo
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_page_address
	cltq
	subq	%rax, %rbx
	movq	_MT_SKB_HEAD_LEN@GOTPCREL(%rip), %rax
	subq	(%rax), %r15
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	movq	%r15, %r8
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_skb_add_rx_frag
	jmp	LBB0_7
LBB0_3:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_build_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %r14
	movq	_MT_DMA_HDR_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_skb_reserve
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	___skb_put
	jmp	LBB0_7
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_DMA_HDR_LEN,8,3             ## @MT_DMA_HDR_LEN
	.comm	_MT_SKB_HEAD_LEN,8,3            ## @MT_SKB_HEAD_LEN
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_mt76u_build_rx_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76u_build_rx_skb
_mt76u_build_rx_skb:                    ; @mt76u_build_rx_skb
	.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	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x2
	bl	_SKB_WITH_OVERHEAD
Lloh0:
	adrp	x23, _MT_DMA_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MT_DMA_HDR_LEN@GOTPAGEOFF]
	ldr	x8, [x23]
	sxtw	x24, w22
	add	x8, x8, x24
	cmp	x0, x8
	b.ge	LBB0_3
; %bb.1:
Lloh2:
	adrp	x25, _MT_SKB_HEAD_LEN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MT_SKB_HEAD_LEN@GOTPAGEOFF]
	ldr	x0, [x25]
Lloh4:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_alloc_skb
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x23]
	add	x1, x21, x8
	ldr	x2, [x25]
	mov	x0, x20
	bl	_skb_put_data
	ldr	x8, [x23]
	ldr	x9, [x25]
	add	x8, x9, x8
	add	x21, x21, x8
	mov	x0, x21
	bl	_virt_to_head_page
	mov	x22, x0
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w23, [x0]
	mov	x0, x22
	bl	_page_address
	sub	x3, x21, w0, sxtw
	ldr	x8, [x25]
	sub	x4, x24, x8
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x5, x19
	bl	_skb_add_rx_frag
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	mov	x1, x19
	bl	_build_skb
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x1, [x23]
	mov	x0, x20
	bl	_skb_reserve
	mov	x0, x20
	mov	x1, x22
	bl	___skb_put
LBB0_5:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_DMA_HDR_LEN,8,3             ; @MT_DMA_HDR_LEN
	.comm	_MT_SKB_HEAD_LEN,8,3            ; @MT_SKB_HEAD_LEN
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_mt76u_build_rx_skb
.subsections_via_symbols
