	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2400m_tx_fifo_push
_i2400m_tx_fifo_push:                   ## @i2400m_tx_fifo_push
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_i2400m_dev
	movq	%r14, %r8
	movq	%rax, %rsi
	leaq	(%r14,%rbx), %r15
	movq	_I2400M_TX_BUF_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	(%r12), %rcx
	movq	8(%r12), %r14
	subq	%rcx, %r14
	addq	%rax, %r14
	cmpq	%r15, %r14
	jae	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdx
	xorl	%r13d, %r13d
	movl	$2, %edi
	movq	%rbx, %rcx
LBB0_2:
	xorl	%eax, %eax
	callq	_d_printf
	jmp	LBB0_9
LBB0_3:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r12, %rdi
	callq	___i2400m_tx_tail_room
	testl	%r13d, %r13d
	jne	LBB0_8
## %bb.4:
	cmpq	%r15, %rax
	jae	LBB0_8
## %bb.5:
	subq	%rax, %r14
	cmpq	%r15, %r14
	jae	LBB0_6
## %bb.7:
	leaq	L_.str.2(%rip), %rdx
	xorl	%r13d, %r13d
	movl	$2, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_2
LBB0_8:
	movl	(%r12), %eax
	cltd
	movq	_I2400M_TX_BUF_SIZE@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movslq	%edx, %r9
	movq	16(%r12), %r13
	addq	%r9, %r13
	leaq	L_.str.3(%rip), %rdx
	movl	$2, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_d_printf
	addl	%ebx, (%r12)
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rdx
	movl	$2, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_d_printf
	movq	_TAIL_FULL@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_9:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2400M_TX_BUF_SIZE,4,2         ## @I2400M_TX_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fifo push %zu/%zu: no space\n"

L_.str.1:                               ## @.str.1
	.asciz	"fifo push %zu/%zu: tail full\n"

	.comm	_TAIL_FULL,8,3                  ## @TAIL_FULL
L_.str.2:                               ## @.str.2
	.asciz	"fifo push %zu/%zu: no head space\n"

L_.str.3:                               ## @.str.3
	.asciz	"fifo push %zu/%zu: at @%zu\n"

	.no_dead_strip	_i2400m_tx_fifo_push
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2400m_tx_fifo_push
_i2400m_tx_fifo_push:                   ; @i2400m_tx_fifo_push
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	bl	_i2400m_dev
	mov	x21, x0
Lloh0:
	adrp	x24, _I2400M_TX_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _I2400M_TX_BUF_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x24]
	ldrsw	x9, [x22]
	ldr	x10, [x22, #8]
	sub	x9, x10, x9
	add	x26, x9, x8
	add	x25, x20, x19
	cmp	x26, x25
	b.hs	LBB0_3
; %bb.1:
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
	mov	w0, #2
	mov	x1, x21
	mov	x3, x19
	mov	x4, x20
	bl	_d_printf
	mov	x23, #0
	b	LBB0_9
LBB0_3:
	mov	x0, x22
	bl	___i2400m_tx_tail_room
	cbnz	w23, LBB0_7
; %bb.4:
	cmp	x0, x25
	b.hs	LBB0_7
; %bb.5:
	sub	x8, x26, x0
	cmp	x8, x25
	b.hs	LBB0_8
; %bb.6:
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_7:
	ldr	x8, [x22, #16]
	ldr	w9, [x22]
	ldr	w10, [x24]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	add	x23, x8, w9, sxtw
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	str	x9, [sp]
	mov	w0, #2
	mov	x1, x21
	mov	x3, x19
	mov	x4, x20
	bl	_d_printf
	ldr	w8, [x22]
	add	w8, w8, w19
	str	w8, [x22]
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #2
	mov	x1, x21
	mov	x3, x19
	mov	x4, x20
	bl	_d_printf
Lloh10:
	adrp	x8, _TAIL_FULL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TAIL_FULL@GOTPAGEOFF]
Lloh12:
	ldr	x23, [x8]
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_I2400M_TX_BUF_SIZE,4,2         ; @I2400M_TX_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fifo push %zu/%zu: no space\n"

l_.str.1:                               ; @.str.1
	.asciz	"fifo push %zu/%zu: tail full\n"

	.comm	_TAIL_FULL,8,3                  ; @TAIL_FULL
l_.str.2:                               ; @.str.2
	.asciz	"fifo push %zu/%zu: no head space\n"

l_.str.3:                               ; @.str.3
	.asciz	"fifo push %zu/%zu: at @%zu\n"

	.no_dead_strip	_i2400m_tx_fifo_push
.subsections_via_symbols
