	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400m_tx_setup                ## -- Begin function i2400m_tx_setup
	.p2align	4, 0x90
_i2400m_tx_setup:                       ## @i2400m_tx_setup
	.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	%rdi, %rbx
	addq	$64, %rdi
	movq	_i2400m_wake_tx_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_I2400M_TX_BUF_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_I2400M_TX_MSG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	xorl	%edi, %edi
	cmpl	(%r15), %eax
	setg	%dil
	callq	_BUILD_BUG_ON
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 40(%rbx)
	movq	$0, 56(%rbx)
	movq	%r14, 16(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_BUG_ON
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i2400m_wake_tx_work,4,2        ## @i2400m_wake_tx_work
	.comm	_I2400M_TX_BUF_SIZE,4,2         ## @I2400M_TX_BUF_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I2400M_TX_MSG_SIZE,4,2         ## @I2400M_TX_MSG_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400m_tx_setup                ; -- Begin function i2400m_tx_setup
	.p2align	2
_i2400m_tx_setup:                       ; @i2400m_tx_setup
	.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, x0
	add	x0, x0, #64
Lloh0:
	adrp	x8, _i2400m_wake_tx_work@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i2400m_wake_tx_work@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh3:
	adrp	x21, _I2400M_TX_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _I2400M_TX_BUF_SIZE@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh8:
	adrp	x8, _I2400M_TX_MSG_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2400M_TX_MSG_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x21]
	cmp	w9, w8, lsl #1
	cset	w0, lt
	bl	_BUILD_BUG_ON
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #24]
	stur	q0, [x19, #40]
	str	xzr, [x19, #56]
	str	x20, [x19, #16]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_i2400m_wake_tx_work,4,2        ; @i2400m_wake_tx_work
	.comm	_I2400M_TX_BUF_SIZE,4,2         ; @I2400M_TX_BUF_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I2400M_TX_MSG_SIZE,4,2         ; @I2400M_TX_MSG_SIZE
.subsections_via_symbols
