	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7601u_mcu_msg_alloc
_mt7601u_mcu_msg_alloc:                 ## @mt7601u_mcu_msg_alloc
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	leal	3(%rbx), %eax
	testl	%esi, %esi
	cmovnsl	%esi, %eax
	andl	$-4, %eax
	movl	%esi, %edi
	subl	%eax, %edi
	callq	_WARN_ON
	movslq	%ebx, %rax
	movq	_MT_DMA_HDR_LEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$4, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_skb_reserve
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_skb_put_data
LBB0_2:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_DMA_HDR_LEN,8,3             ## @MT_DMA_HDR_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_mt7601u_mcu_msg_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7601u_mcu_msg_alloc
_mt7601u_mcu_msg_alloc:                 ; @mt7601u_mcu_msg_alloc
	.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
	negs	w8, w1
	and	w8, w8, #0x3
	and	w9, w1, #0x3
	csneg	w0, w9, w8, mi
	bl	_WARN_ON
Lloh0:
	adrp	x22, _MT_DMA_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MT_DMA_HDR_LEN@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x8, x8, w19, sxtw
	add	x0, x8, #4
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_alloc_skb
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x1, [x22]
	mov	x0, x21
	bl	_skb_reserve
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_skb_put_data
LBB0_2:
	mov	x0, x21
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_DMA_HDR_LEN,8,3             ; @MT_DMA_HDR_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_mt7601u_mcu_msg_alloc
.subsections_via_symbols
