	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_auxbuf_make_space
_cxusb_auxbuf_make_space:               ## @cxusb_auxbuf_make_space
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpl	%edx, (%rsi)
	setbe	%dil
	callq	_WARN_ON
	movl	(%r15), %ebx
	leal	-1(%rbx), %r13d
	testq	%rax, %rax
	cmovel	%r12d, %r13d
	movq	%r15, %rdi
	callq	_cxusb_auxbuf_paylen
	subl	%eax, %ebx
	movq	_AUXB@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_cxusb_vprintk
	movl	$1, %eax
	subl	%ebx, %r13d
	jbe	LBB0_2
## %bb.1:
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r13d, %ecx
	callq	_cxusb_vprintk
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_cxusb_auxbuf_head_trim
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUXB,4,2                       ## @AUXB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"freespace is %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"will overwrite %u bytes of buffer\n"

	.no_dead_strip	_cxusb_auxbuf_make_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_auxbuf_make_space
_cxusb_auxbuf_make_space:               ; @cxusb_auxbuf_make_space
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	cmp	w8, w2
	cset	w0, ls
	bl	_WARN_ON
	ldr	w22, [x19]
	sub	w8, w22, #1
	cmp	x0, #0
	csel	w23, w21, w8, eq
	mov	x0, x19
	bl	_cxusb_auxbuf_paylen
	sub	w21, w22, w0
Lloh0:
	adrp	x22, _AUXB@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AUXB@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_cxusb_vprintk
	subs	w21, w23, w21
	b.ls	LBB0_2
; %bb.1:
	ldr	w1, [x22]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_cxusb_vprintk
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_cxusb_auxbuf_head_trim
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AUXB,4,2                       ; @AUXB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"freespace is %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"will overwrite %u bytes of buffer\n"

	.no_dead_strip	_cxusb_auxbuf_make_space
.subsections_via_symbols
