	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function W6692B_empty_fifo
_W6692B_empty_fifo:                     ## @W6692B_empty_fifo
	.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	%esi, %r15d
	movq	%rdi, %r12
	movq	32(%rdi), %r14
	movl	(%r14), %eax
	movq	_L1_DEB_HSCX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_L1_DEB_HSCX_FIFO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_debugl1
LBB0_3:
	movq	16(%r12), %rbx
	movslq	%r15d, %rax
	addq	%rbx, %rax
	movq	_HSCX_BUFMAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.4:
	movq	_L1_DEB_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_debugl1
LBB0_6:
	movl	(%r12), %esi
	movq	_W_B_CMDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_W_B_CMDR_RACK@GOTPCREL(%rip), %rax
	movq	_W_B_CMDR_RACT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r14, %rdi
	callq	*8(%r14)
	movq	$0, 16(%r12)
	jmp	LBB0_8
LBB0_7:
	shlq	$2, %rbx
	addq	24(%r12), %rbx
	movq	%rax, 16(%r12)
	movl	(%r12), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_READW6692BFIFO
	movl	(%r12), %esi
	movq	_W_B_CMDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_W_B_CMDR_RACK@GOTPCREL(%rip), %rax
	movq	_W_B_CMDR_RACT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r14, %rdi
	callq	*8(%r14)
	movq	_L1_DEB_HSCX_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_8
## %bb.9:
	movq	8(%r12), %r13
	movl	(%r12), %edx
	addl	$49, %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %ecx
	callq	_sprintf
	movslq	%eax, %rdi
	addq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_QuickHex
	movq	8(%r12), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debugl1                        ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_L1_DEB_HSCX,4,2                ## @L1_DEB_HSCX
	.comm	_L1_DEB_HSCX_FIFO,4,2           ## @L1_DEB_HSCX_FIFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"W6692B_empty_fifo"

	.comm	_HSCX_BUFMAX,8,3                ## @HSCX_BUFMAX
	.comm	_L1_DEB_WARN,4,2                ## @L1_DEB_WARN
L_.str.1:                               ## @.str.1
	.asciz	"W6692B_empty_fifo: incoming packet too large"

	.comm	_W_B_CMDR,4,2                   ## @W_B_CMDR
	.comm	_W_B_CMDR_RACK,4,2              ## @W_B_CMDR_RACK
	.comm	_W_B_CMDR_RACT,4,2              ## @W_B_CMDR_RACT
L_.str.2:                               ## @.str.2
	.asciz	"W6692B_empty_fifo %c cnt %d"

	.no_dead_strip	_W6692B_empty_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function W6692B_empty_fifo
_W6692B_empty_fifo:                     ; @W6692B_empty_fifo
	.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, x1
	mov	x19, x0
	ldr	x20, [x0, #32]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _L1_DEB_HSCX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _L1_DEB_HSCX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x23, _L1_DEB_HSCX_FIFO@GOTPAGE
Lloh4:
	ldr	x23, [x23, _L1_DEB_HSCX_FIFO@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_debugl1
LBB0_3:
	ldr	x8, [x19, #16]
	add	x9, x8, w21, sxtw
Lloh7:
	adrp	x10, _HSCX_BUFMAX@GOTPAGE
Lloh8:
	ldr	x10, [x10, _HSCX_BUFMAX@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x9, x10
	b.le	LBB0_7
; %bb.4:
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _L1_DEB_WARN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _L1_DEB_WARN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_debugl1
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	w1, [x19]
Lloh15:
	adrp	x9, _W_B_CMDR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _W_B_CMDR@GOTPAGEOFF]
Lloh17:
	adrp	x10, _W_B_CMDR_RACK@GOTPAGE
Lloh18:
	ldr	x10, [x10, _W_B_CMDR_RACK@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x9]
Lloh20:
	ldr	w9, [x10]
Lloh21:
	adrp	x10, _W_B_CMDR_RACT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _W_B_CMDR_RACT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w3, w10, w9
	mov	x0, x20
	blr	x8
	str	xzr, [x19, #16]
	b	LBB0_9
LBB0_7:
	ldr	x10, [x19, #24]
	add	x22, x10, x8, lsl #2
	str	x9, [x19, #16]
	ldr	w1, [x19]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	bl	_READW6692BFIFO
	ldr	x8, [x20, #8]
	ldr	w1, [x19]
Lloh24:
	adrp	x9, _W_B_CMDR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _W_B_CMDR@GOTPAGEOFF]
Lloh26:
	adrp	x10, _W_B_CMDR_RACK@GOTPAGE
Lloh27:
	ldr	x10, [x10, _W_B_CMDR_RACK@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x9]
Lloh29:
	ldr	w9, [x10]
Lloh30:
	adrp	x10, _W_B_CMDR_RACT@GOTPAGE
Lloh31:
	ldr	x10, [x10, _W_B_CMDR_RACT@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	orr	w3, w10, w9
	mov	x0, x20
	blr	x8
	ldr	w8, [x20]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	x23, [x19, #8]
	ldr	w8, [x19]
	add	w2, w8, #49
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x3, x21
	bl	_sprintf
	add	x0, x23, w0, sxtw
	mov	x1, x22
	mov	x2, x21
	bl	_QuickHex
	ldr	x1, [x19, #8]
	mov	x0, x20
	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
	b	_debugl1
LBB0_9:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_L1_DEB_HSCX,4,2                ; @L1_DEB_HSCX
	.comm	_L1_DEB_HSCX_FIFO,4,2           ; @L1_DEB_HSCX_FIFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"W6692B_empty_fifo"

	.comm	_HSCX_BUFMAX,8,3                ; @HSCX_BUFMAX
	.comm	_L1_DEB_WARN,4,2                ; @L1_DEB_WARN
l_.str.1:                               ; @.str.1
	.asciz	"W6692B_empty_fifo: incoming packet too large"

	.comm	_W_B_CMDR,4,2                   ; @W_B_CMDR
	.comm	_W_B_CMDR_RACK,4,2              ; @W_B_CMDR_RACK
	.comm	_W_B_CMDR_RACT,4,2              ; @W_B_CMDR_RACT
l_.str.2:                               ; @.str.2
	.asciz	"W6692B_empty_fifo %c cnt %d"

	.no_dead_strip	_W6692B_empty_fifo
.subsections_via_symbols
