	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2400m_tx_close
_i2400m_tx_close:                       ## @i2400m_tx_close
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_i2400m_dev
	movq	%rax, %r12
	movq	(%r14), %rbx
	movq	_I2400M_TX_SKIP@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	jne	LBB0_10
## %bb.1:
	movl	12(%rbx), %edi
	callq	_le16_to_cpu
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_pld@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	12(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_struct_size
	movq	_I2400M_PL_ALIGN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_ALIGN
	movq	_I2400M_TX_PLD_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	%eax, %ecx
	movl	%ecx, 4(%rbx)
	movslq	%ecx, %r15
	leaq	(%rbx,%r15), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_memmove
	movslq	4(%rbx), %rax
	movslq	(%rbx,%r15), %rdi
	subq	%rax, %rdi
	movl	%edi, (%rbx,%r15)
	movl	20(%r14), %esi
	callq	_ALIGN
	movslq	(%rbx,%r15), %rcx
	movq	%rax, %r13
	subq	%rcx, %r13
	je	LBB0_7
## %bb.4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i2400m_tx_fifo_push
	movq	%rax, %r15
	testq	%rax, %rax
	sete	%al
	movq	_TAIL_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movslq	(%r12), %rdx
	movl	16(%r14), %r8d
	movl	8(%r14), %eax
	movl	12(%r14), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_dev_err
	jmp	LBB0_7
LBB0_2:
	movl	(%rbx), %r13d
	orl	(%r15), %r13d
	jmp	LBB0_9
LBB0_6:
	movq	%r15, %rdi
	movl	$173, %esi
	movq	%r13, %rdx
	callq	_memset
LBB0_7:
	movq	%r13, %rdi
	callq	_cpu_to_le16
	movl	%eax, 8(%r12)
	addl	%r13d, (%r12)
	cmpq	%r12, %rbx
	je	LBB0_10
## %bb.8:
	addl	(%rbx), %r13d
LBB0_9:
	movl	%r13d, (%rbx)
LBB0_10:
	movq	$0, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2400M_TX_SKIP,4,2             ## @I2400M_TX_SKIP
	.comm	_pld,4,2                        ## @pld
	.comm	_I2400M_PL_ALIGN,4,2            ## @I2400M_PL_ALIGN
	.comm	_I2400M_TX_PLD_SIZE,4,2         ## @I2400M_TX_PLD_SIZE
	.comm	_TAIL_FULL,8,3                  ## @TAIL_FULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SW BUG! Possible data leakage from memory the device should not read for padding - size %lu aligned_size %zu tx_buf %p in %zu out %zu\n"

	.no_dead_strip	_i2400m_tx_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2400m_tx_close
_i2400m_tx_close:                       ; @i2400m_tx_close
	.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, x0
	bl	_i2400m_dev
	ldr	x20, [x19]
	ldr	w8, [x20]
Lloh0:
	adrp	x22, _I2400M_TX_SKIP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _I2400M_TX_SKIP@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.1:
	mov	x21, x0
	ldr	w0, [x20, #12]
	bl	_le16_to_cpu
	cbz	w0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _pld@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pld@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	ldr	w0, [x20, #12]
	bl	_le16_to_cpu
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_struct_size
Lloh5:
	adrp	x8, _I2400M_PL_ALIGN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2400M_PL_ALIGN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ALIGN
	mov	x2, x0
Lloh8:
	adrp	x8, _I2400M_TX_PLD_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2400M_TX_PLD_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	sub	w8, w8, w2
	str	w8, [x20, #4]
	add	x22, x20, w8, sxtw
	mov	x0, x22
	mov	x1, x20
	bl	_memmove
	ldrsw	x8, [x20, #4]
	ldrsw	x9, [x22]
	sub	x0, x9, x8
	str	w0, [x22]
	ldr	w1, [x19, #20]
	bl	_ALIGN
	ldrsw	x8, [x22]
	subs	x23, x0, x8
	b.eq	LBB0_7
; %bb.3:
	mov	x24, x0
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	mov	w3, #0
	bl	_i2400m_tx_fifo_push
	mov	x25, x0
	cmp	x0, #0
Lloh11:
	adrp	x8, _TAIL_FULL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TAIL_FULL@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ccmp	x0, x8, #4, ne
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_6
; %bb.4:
	ldrsw	x2, [x22]
	ldp	w5, w4, [x19, #12]
	ldr	w6, [x19, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x24
	bl	_dev_err
	b	LBB0_7
LBB0_5:
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
	b	LBB0_9
LBB0_6:
	mov	x0, x25
	mov	w1, #173
	mov	x2, x23
	bl	_memset
LBB0_7:
	mov	x0, x23
	bl	_cpu_to_le16
	str	w0, [x22, #8]
	ldr	w8, [x22]
	add	w8, w8, w23
	str	w8, [x22]
	cmp	x20, x22
	b.eq	LBB0_10
; %bb.8:
	ldr	w8, [x20]
	add	w8, w8, w23
LBB0_9:
	str	w8, [x20]
LBB0_10:
	str	xzr, [x19]
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_I2400M_TX_SKIP,4,2             ; @I2400M_TX_SKIP
	.comm	_pld,4,2                        ; @pld
	.comm	_I2400M_PL_ALIGN,4,2            ; @I2400M_PL_ALIGN
	.comm	_I2400M_TX_PLD_SIZE,4,2         ; @I2400M_TX_PLD_SIZE
	.comm	_TAIL_FULL,8,3                  ; @TAIL_FULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SW BUG! Possible data leakage from memory the device should not read for padding - size %lu aligned_size %zu tx_buf %p in %zu out %zu\n"

	.no_dead_strip	_i2400m_tx_close
.subsections_via_symbols
