	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2400m_tx_new
_i2400m_tx_new:                         ## @i2400m_tx_new
	.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
	movq	%rdi, %r15
	callq	_i2400m_dev
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpq	$0, 8(%r15)
	setne	%dil
	callq	_BUG_ON
	movq	_I2400M_TX_PLD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_i2400m_tx_fifo_push
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_TAIL_FULL@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r12
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r13), %rbx
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_i2400m_tx_skip_tail
	movl	$2, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_d_printf
	movq	_I2400M_TX_PLD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_i2400m_tx_fifo_push
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_I2400M_TX_PLD_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%r12), %eax
	movl	%eax, (%rbx)
LBB0_6:
	movq	%rbx, 8(%r15)
	movslq	(%r15), %rax
	movq	%rbx, %r8
	subq	%rax, %r8
	leaq	L_.str.1(%rip), %rdx
	movl	$2, %edi
	movq	%r14, %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_d_printf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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	"new TX message: tail full, trying head\n"

L_.str.1:                               ## @.str.1
	.asciz	"new TX message: %p @%zu\n"

	.no_dead_strip	_i2400m_tx_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2400m_tx_new
_i2400m_tx_new:                         ; @i2400m_tx_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	bl	_i2400m_dev
	mov	x19, x0
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_BUG_ON
Lloh0:
	adrp	x23, _I2400M_TX_PLD_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _I2400M_TX_PLD_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x20, #16]
	mov	x0, x20
	mov	w3, #0
	bl	_i2400m_tx_fifo_push
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x24, _TAIL_FULL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TAIL_FULL@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cmp	x21, x8
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_i2400m_tx_skip_tail
	mov	w0, #2
	mov	x1, x19
	mov	x2, x22
	bl	_d_printf
	ldr	w1, [x23]
	ldr	w2, [x20, #16]
	mov	x0, x20
	mov	w3, #1
	bl	_i2400m_tx_fifo_push
	mov	x21, x0
	cbnz	x0, LBB0_2
	b	LBB0_5
LBB0_4:
	ldr	w2, [x23]
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	ldr	w8, [x23]
	str	w8, [x21]
LBB0_5:
	str	x21, [x20, #8]
	ldrsw	x8, [x20]
	sub	x8, x21, x8
	stp	x21, x8, [sp]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #2
	mov	x1, x19
	bl	_d_printf
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.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	"new TX message: tail full, trying head\n"

l_.str.1:                               ; @.str.1
	.asciz	"new TX message: %p @%zu\n"

	.no_dead_strip	_i2400m_tx_new
.subsections_via_symbols
