	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_i2400m_dev
	movq	%rax, %rsi
	movq	_I2400M_TX_BUF_SIZE@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	subq	(%r14), %rax
	leaq	(%r12,%r13), %rbx
	addq	8(%r14), %rax
	cmpq	%rbx, %rax
	jae	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movq	%r13, %r8
	xorl	%r13d, %r13d
	movl	$2, %edi
LBB0_2:
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_d_printf
	jmp	LBB0_17
LBB0_3:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	___i2400m_tx_tail_room
	cmpq	%rbx, %rax
	jae	LBB0_13
## %bb.4:
	movq	8(%r14), %rax
	movslq	(%r15), %rsi
	movq	%rax, %rcx
	orq	%rsi, %rcx
	shrq	$32, %rcx
	je	LBB0_5
## %bb.6:
	xorl	%edx, %edx
	divq	%rsi
	movq	%rdx, %rcx
	jmp	LBB0_7
LBB0_13:
	movq	%r13, %r8
	movq	(%r14), %rax
	movq	16(%r14), %r13
	movslq	(%r15), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_14
## %bb.15:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r9
	jmp	LBB0_16
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%edx, %ecx
LBB0_7:
	movq	(%r14), %rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_8
## %bb.9:
	xorl	%edx, %edx
	divq	%rsi
	cmpq	%rdx, %rcx
	jae	LBB0_12
LBB0_11:
	leaq	L_.str.1(%rip), %rdx
	movl	$2, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_d_printf
	movq	_TAIL_FULL@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_17
LBB0_14:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r9d
LBB0_16:
	addq	%r9, %r13
	leaq	L_.str.3(%rip), %rdx
	movl	$2, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_d_printf
	addq	%r12, (%r14)
LBB0_17:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	cmpq	%rdx, %rcx
	jb	LBB0_11
LBB0_12:
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %r8
	xorl	%r13d, %r13d
	movl	$2, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_2
	.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, #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, x2
	mov	x19, x1
	mov	x22, x0
	bl	_i2400m_dev
	mov	x21, x0
Lloh0:
	adrp	x23, _I2400M_TX_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _I2400M_TX_BUF_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x23]
	ldp	x9, x10, [x22]
	sub	x8, x8, x9
	add	x8, x8, x10
	add	x24, x20, x19
	cmp	x8, x24
	b.hs	LBB0_2
; %bb.1:
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
	mov	x0, x22
	bl	___i2400m_tx_tail_room
	cmp	x0, x24
	b.hs	LBB0_5
; %bb.3:
	ldrsw	x8, [x23]
	ldp	x10, x9, [x22]
	udiv	x11, x9, x8
	msub	x9, x11, x8, x9
	udiv	x11, x10, x8
	msub	x8, x11, x8, x10
	cmp	x9, x8
	b.hs	LBB0_6
; %bb.4:
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #2
	mov	x1, x21
	mov	x3, x19
	mov	x4, x20
	bl	_d_printf
Lloh6:
	adrp	x8, _TAIL_FULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TAIL_FULL@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x8]
	b	LBB0_8
LBB0_5:
	ldr	x8, [x22, #16]
	ldr	x9, [x22]
	ldrsw	x10, [x23]
	udiv	x11, x9, x10
	msub	x9, x11, x10, x9
	add	x23, x8, x9
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	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	x8, [x22]
	add	x8, x8, x19
	str	x8, [x22]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_7:
	mov	w0, #2
	mov	x1, x21
	mov	x3, x19
	mov	x4, x20
	bl	_d_printf
	mov	x23, #0
LBB0_8:
	mov	x0, x23
	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	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.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
