	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2400m_tx_skip_tail
_i2400m_tx_skip_tail:                   ## @i2400m_tx_skip_tail
	.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, %rbx
	callq	_i2400m_dev
	movq	%rax, %r13
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_I2400M_TX_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rbx, %rdi
	callq	___i2400m_tx_tail_room
	movq	%rax, %r15
	movq	8(%rbx), %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rdx
	orq	%r12, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%r12
	movq	%rdx, %r12
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
	movl	%edx, %r12d
LBB0_4:
	xorl	%edi, %edi
	cmpq	$8, %r15
	setb	%dil
	callq	_BUG_ON
	movq	_I2400M_TX_SKIP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orq	%r15, %rax
	movq	%rax, (%r14,%r12,8)
	leaq	L_.str(%rip), %rdx
	movl	$2, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	%r12, %r8
	callq	_d_printf
	addq	%r15, (%rbx)
LBB0_5:
	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,8,3         ## @I2400M_TX_BUF_SIZE
	.comm	_I2400M_TX_SKIP,8,3             ## @I2400M_TX_SKIP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skip tail: skipping %zu bytes @%zu\n"

	.no_dead_strip	_i2400m_tx_skip_tail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2400m_tx_skip_tail
_i2400m_tx_skip_tail:                   ; @i2400m_tx_skip_tail
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	bl	_i2400m_dev
	mov	x20, x0
	ldr	x22, [x19]
Lloh0:
	adrp	x8, _I2400M_TX_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2400M_TX_BUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	mov	x0, x19
	bl	___i2400m_tx_tail_room
	mov	x21, x0
	ldr	x23, [x19, #8]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	udiv	x8, x22, x24
	msub	x22, x8, x24, x22
	cmp	x21, #8
	cset	w0, lo
	bl	_BUG_ON
Lloh3:
	adrp	x8, _I2400M_TX_SKIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2400M_TX_SKIP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	orr	x8, x8, x21
	str	x8, [x23, x22, lsl #3]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #2
	mov	x1, x20
	mov	x3, x21
	mov	x4, x22
	bl	_d_printf
	ldr	x8, [x19]
	add	x8, x8, x21
	str	x8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I2400M_TX_BUF_SIZE,8,3         ; @I2400M_TX_BUF_SIZE
	.comm	_I2400M_TX_SKIP,8,3             ; @I2400M_TX_SKIP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skip tail: skipping %zu bytes @%zu\n"

	.no_dead_strip	_i2400m_tx_skip_tail
.subsections_via_symbols
