	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76u_tx_setup_buffers
_mt76u_tx_setup_buffers:                ## @mt76u_tx_setup_buffers
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movl	(%rsi), %eax
	movl	%eax, 12(%rdx)
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	4(%r14), %edi
	movq	_MT_TX_SG_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sg_init_table
	movl	4(%r14), %esi
	movl	(%rbx), %ecx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_skb_to_sgvec
	movl	%eax, (%r14)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %eax
	jmp	LBB0_4
LBB0_1:
	movl	4(%rbx), %eax
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TX_SG_MAX_SIZE,4,2          ## @MT_TX_SG_MAX_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mt76u_tx_setup_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76u_tx_setup_buffers
_mt76u_tx_setup_buffers:                ; @mt76u_tx_setup_buffers
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	ldr	w8, [x1]
	str	w8, [x2, #12]
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _MT_TX_SG_MAX_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_TX_SG_MAX_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sg_init_table
	ldr	w1, [x19, #4]
	ldr	w3, [x20]
	mov	x0, x20
	mov	w2, #0
	bl	_skb_to_sgvec
	str	w0, [x19]
	cbnz	w0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TX_SG_MAX_SIZE,4,2          ; @MT_TX_SG_MAX_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mt76u_tx_setup_buffers
.subsections_via_symbols
