	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	movq	40(%rdi), %r13
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movl	$64, %edi
	xorl	%eax, %eax
	callq	_DBG
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	callq	_BUG_ON
	movq	_HDLC_CMD_XME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	movl	28(%rbx), %edx
	andl	%edx, %ecx
	movl	%ecx, 28(%rbx)
	movq	32(%rbx), %rcx
	movq	(%rcx), %rcx
	movslq	(%rbx), %r14
	cmpq	%r14, %rcx
	jg	LBB0_4
## %bb.1:
	movq	8(%rbx), %rsi
	movq	_L1_MODE_TRANS@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_3
## %bb.2:
	orl	%eax, %edx
	movl	%edx, 28(%rbx)
LBB0_3:
	movl	%ecx, %r14d
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movl	$64, %edi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_DBG
	movq	32(%rbx), %rdi
	movq	8(%rdi), %r15
	movl	%r14d, %esi
	callq	_skb_pull
	addl	%r14d, 16(%rbx)
	cmpl	(%rbx), %r14d
	cmovnel	%r14d, %r12d
	movl	%r12d, 24(%rbx)
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.5:
	cmpl	$129, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$130, %eax
	jne	LBB0_14
## %bb.7:
	leaq	4(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	___fcpci_write_ctrl
	movq	_AVM_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	movq	_HDLC_FIFO@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	leal	3(%r14), %eax
	addl	$6, %r14d
	testl	%eax, %eax
	cmovnsl	%eax, %r14d
	sarl	$2, %r14d
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_outsl
	jmp	LBB0_13
LBB0_12:
	leaq	4(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	___fcpnp_write_ctrl
	movq	_AVM_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_outsb
LBB0_13:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_8:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_fcpci2_write_ctrl
	cmpl	$0, 20(%rbx)
	jne	LBB0_9
## %bb.10:
	movq	_AVM_HDLC_FIFO_1@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_AVM_HDLC_FIFO_2@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	leal	3(%r14), %eax
	addl	$6, %r14d
	testl	%eax, %eax
	cmovnsl	%eax, %r14d
	sarl	$2, %r14d
	movq	%r15, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outsl                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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/%d"

	.comm	_AVM_DATA,8,3                   ## @AVM_DATA
	.comm	_HDLC_FIFO,8,3                  ## @HDLC_FIFO
	.comm	_AVM_HDLC_FIFO_2,8,3            ## @AVM_HDLC_FIFO_2
	.comm	_AVM_HDLC_FIFO_1,8,3            ## @AVM_HDLC_FIFO_1
	.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, #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	x19, x0
	ldp	x20, x23, [x0, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #64
	bl	_DBG
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
Lloh2:
	adrp	x8, _HDLC_CMD_XME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDLC_CMD_XME@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	ldr	w10, [x19, #28]
	bic	w8, w10, w9
	str	w8, [x19, #28]
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldrsw	x11, [x19]
	mov	x20, x11
	cmp	x8, x11
	b.gt	LBB0_4
; %bb.1:
	ldr	x11, [x19, #8]
Lloh5:
	adrp	x12, _L1_MODE_TRANS@GOTPAGE
Lloh6:
	ldr	x12, [x12, _L1_MODE_TRANS@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	cmp	x11, x12
	b.eq	LBB0_3
; %bb.2:
	orr	w9, w10, w9
	str	w9, [x19, #28]
LBB0_3:
	mov	x20, x8
LBB0_4:
	stp	x20, x8, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #64
	bl	_DBG
	ldr	x0, [x19, #32]
	ldr	x21, [x0, #8]
	mov	x1, x20
	bl	_skb_pull
	ldr	w8, [x19, #16]
	add	w8, w8, w20
	str	w8, [x19, #16]
	ldr	w8, [x19]
	cmp	w20, w8
	csel	w8, wzr, w20, eq
	str	w8, [x19, #24]
	ldr	w8, [x23]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.7:
	add	x22, x23, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	w1, #3
	bl	___fcpci_write_ctrl
Lloh10:
	adrp	x8, _AVM_DATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVM_DATA@GOTPAGEOFF]
	ldr	x9, [x23, #8]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x10, _HDLC_FIFO@GOTPAGE
Lloh14:
	ldr	x10, [x10, _HDLC_FIFO@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	add	x8, x8, x9
	add	x0, x8, x10
	add	w8, w20, #3
	add	w9, w20, #6
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #2
	mov	x1, x21
	bl	_outsl
	b	LBB0_9
LBB0_8:
	add	x22, x23, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	w1, #3
	bl	___fcpnp_write_ctrl
	ldr	x8, [x23, #8]
Lloh16:
	adrp	x9, _AVM_DATA@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AVM_DATA@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x21
	mov	x2, x20
	bl	_outsb
LBB0_9:
	mov	x0, x22
	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
	b	_spin_unlock_irqrestore
LBB0_10:
	mov	x0, x19
	mov	w1, #3
	bl	_fcpci2_write_ctrl
	ldr	x8, [x23, #8]
	ldr	w9, [x19, #20]
Lloh19:
	adrp	x10, _AVM_HDLC_FIFO_2@GOTPAGE
Lloh20:
	ldr	x10, [x10, _AVM_HDLC_FIFO_2@GOTPAGEOFF]
Lloh21:
	adrp	x11, _AVM_HDLC_FIFO_1@GOTPAGE
Lloh22:
	ldr	x11, [x11, _AVM_HDLC_FIFO_1@GOTPAGEOFF]
	cmp	w9, #0
	csel	x9, x11, x10, eq
	ldr	x9, [x9]
	add	x0, x9, x8
	add	w8, w20, #3
	add	w9, w20, #6
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #2
	mov	x1, x21
	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
	b	_outsl
LBB0_11:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.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/%d"

	.comm	_AVM_DATA,8,3                   ; @AVM_DATA
	.comm	_HDLC_FIFO,8,3                  ; @HDLC_FIFO
	.comm	_AVM_HDLC_FIFO_2,8,3            ; @AVM_HDLC_FIFO_2
	.comm	_AVM_HDLC_FIFO_1,8,3            ; @AVM_HDLC_FIFO_1
	.no_dead_strip	_hdlc_fill_fifo
.subsections_via_symbols
