	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdlc_fill_fifo
_hdlc_fill_fifo:                        ## @hdlc_fill_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
	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, %r13
	movq	56(%rdi), %r12
	movl	(%r12), %eax
	movq	_L1_DEB_HSCX@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	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	%r12, %rdi
	xorl	%eax, %eax
	callq	_debugl1
LBB0_3:
	movq	48(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.4:
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.5:
	movq	_HDLC_CMD_XME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	notl	%esi
	movl	40(%r13), %edx
	andl	%edx, %esi
	movl	%esi, 40(%r13)
	movl	$32, %ebx
	cmpl	$32, %ecx
	ja	LBB0_8
## %bb.6:
	movq	(%r13), %rsi
	movq	_L1_MODE_TRANS@GOTPCREL(%rip), %r8
	movl	%ecx, %ebx
	cmpq	(%r8), %rsi
	je	LBB0_8
## %bb.7:
	orl	%eax, %edx
	movl	%edx, 40(%r13)
	movl	%ecx, %ebx
LBB0_8:
	movl	(%r12), %eax
	testl	%eax, (%r14)
	je	LBB0_11
## %bb.9:
	movq	_L1_DEB_HSCX_FIFO@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_debugl1
	movq	48(%r13), %rdi
LBB0_11:
	movq	8(%rdi), %r15
	movl	%ebx, %esi
	callq	_skb_pull
	subl	%ebx, 8(%r13)
	addl	%ebx, 32(%r13)
	xorl	%eax, %eax
	cmpl	$32, %ebx
	cmovnel	%ebx, %eax
	movl	%eax, 36(%r13)
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_write_ctrl
	movq	8(%r12), %rax
	movq	_AVM_FRITZ_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_12
## %bb.14:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r13), %edi
	movq	16(%r12), %rsi
	callq	_outl
	addq	$4, %r13
	cmpl	%ebx, %r13d
	jl	LBB0_15
## %bb.16:
	addq	%r15, %r13
	movq	%r15, %r14
	movq	%r13, %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_12:
	movq	%r15, %r14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	addq	$4, %r14
	movq	16(%r12), %rsi
	callq	_outb
	decl	%ebx
	jne	LBB0_13
LBB0_17:
	movq	_L1_DEB_HSCX_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_18
## %bb.19:
	movq	8(%r12), %rax
	movq	_AVM_FRITZ_PNP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	cmoveq	%r15, %r14
	cmpq	$1, 24(%r13)
	movq	%r13, %r15
	movq	16(%r13), %r13
	movl	$66, %edx
	sbbl	$0, %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_sprintf
	movslq	%eax, %rdi
	addq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_QuickHex
	movq	16(%r15), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debugl1                        ## TAILCALL
LBB0_18:
	addq	$24, %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	"hdlc_fill_fifo"

	.comm	_HDLC_CMD_XME,4,2               ## @HDLC_CMD_XME
	.comm	_L1_MODE_TRANS,8,3              ## @L1_MODE_TRANS
L_.str.1:                               ## @.str.1
	.asciz	"hdlc_fill_fifo %d/%ld"

	.comm	_AVM_FRITZ_PCI,8,3              ## @AVM_FRITZ_PCI
	.comm	_AVM_FRITZ_PNP,8,3              ## @AVM_FRITZ_PNP
L_.str.2:                               ## @.str.2
	.asciz	"hdlc_fill_fifo %c cnt %d"

	.comm	__IO_BASE,8,3                   ## @_IO_BASE
	.no_dead_strip	_hdlc_fill_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdlc_fill_fifo
_hdlc_fill_fifo:                        ; @hdlc_fill_fifo
	.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	x20, x0
	ldr	x19, [x0, #56]
	ldr	w8, [x19]
Lloh0:
	adrp	x23, _L1_DEB_HSCX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _L1_DEB_HSCX@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh2:
	adrp	x22, _L1_DEB_HSCX_FIFO@GOTPAGE
Lloh3:
	ldr	x22, [x22, _L1_DEB_HSCX_FIFO@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_2:
	ldr	x0, [x20, #48]
	cbz	x0, LBB0_21
LBB0_3:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.4:
Lloh4:
	adrp	x9, _HDLC_CMD_XME@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HDLC_CMD_XME@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	ldr	w10, [x20, #40]
	bic	w11, w10, w9
	str	w11, [x20, #40]
	cmp	w8, #32
	b.ls	LBB0_7
; %bb.5:
	mov	w21, #32
	b	LBB0_10
LBB0_6:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_debugl1
	ldr	x0, [x20, #48]
	cbnz	x0, LBB0_3
	b	LBB0_21
LBB0_7:
	ldr	x11, [x20]
Lloh9:
	adrp	x12, _L1_MODE_TRANS@GOTPAGE
Lloh10:
	ldr	x12, [x12, _L1_MODE_TRANS@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
	cmp	x11, x12
	b.eq	LBB0_9
; %bb.8:
	orr	w9, w10, w9
	str	w9, [x20, #40]
LBB0_9:
	mov	x21, x8
LBB0_10:
	ldr	w9, [x19]
	ldr	w10, [x23]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.11:
	ldr	w10, [x22]
	tst	w10, w9
	b.ne	LBB0_13
; %bb.12:
	stp	x21, x8, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_debugl1
	ldr	x0, [x20, #48]
LBB0_13:
	ldr	x23, [x0, #8]
	mov	x1, x21
	bl	_skb_pull
	ldr	w8, [x20, #8]
	sub	w8, w8, w21
	str	w8, [x20, #8]
	ldr	w8, [x20, #32]
	add	w8, w8, w21
	cmp	w21, #32
	csel	w9, wzr, w21, eq
	stp	w8, w9, [x20, #32]
	mov	x0, x20
	mov	w1, #3
	bl	_write_ctrl
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _AVM_FRITZ_PCI@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AVM_FRITZ_PCI@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.14:
	mov	x25, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, x25]
	ldr	x1, [x19, #16]
	bl	_outl
	add	x25, x25, #4
	cmp	w25, w21
	b.lt	LBB0_15
; %bb.16:
	mov	x24, x23
	add	x23, x23, x25
	b	LBB0_19
LBB0_17:
	mov	x25, x21
	mov	x24, x23
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24], #4
	ldr	x1, [x19, #16]
	bl	_outb
	subs	w25, w25, #1
	b.ne	LBB0_18
LBB0_19:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _AVM_FRITZ_PNP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AVM_FRITZ_PNP@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x22, x23, x24, eq
	ldp	x23, x8, [x20, #16]
	cmp	x8, #0
	mov	w8, #65
	cinc	w2, w8, ne
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	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, [x20, #16]
	mov	x0, x19
	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
	b	_debugl1
LBB0_21:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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	"hdlc_fill_fifo"

	.comm	_HDLC_CMD_XME,4,2               ; @HDLC_CMD_XME
	.comm	_L1_MODE_TRANS,8,3              ; @L1_MODE_TRANS
l_.str.1:                               ; @.str.1
	.asciz	"hdlc_fill_fifo %d/%ld"

	.comm	_AVM_FRITZ_PCI,8,3              ; @AVM_FRITZ_PCI
	.comm	_AVM_FRITZ_PNP,8,3              ; @AVM_FRITZ_PNP
l_.str.2:                               ; @.str.2
	.asciz	"hdlc_fill_fifo %c cnt %d"

	.comm	__IO_BASE,8,3                   ; @_IO_BASE
	.no_dead_strip	_hdlc_fill_fifo
.subsections_via_symbols
