	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function modem_fill
_modem_fill:                            ## @modem_fill
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpq	$0, 8(%rax)
	jne	LBB0_8
## %bb.2:
	movq	_FLG_LLI_L1WAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	40(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_PACKET_NOACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%rbx), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	leaq	32(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	8(%rbx), %eax
	addl	%eax, 36(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_B_ACKPENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_schedule_event
LBB0_5:
	movq	24(%rbx), %rdi
	callq	_dev_kfree_skb_any
	movq	$0, 24(%rbx)
LBB0_6:
	leaq	16(%rbx), %rdi
	callq	_skb_dequeue
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	$0, 8(%rbx)
	movq	_BC_FLG_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_write_modem                    ## TAILCALL
LBB0_9:
	movq	_BC_FLG_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	movq	_B_XMTBUFREADY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_schedule_event                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLG_LLI_L1WAKEUP,4,2           ## @FLG_LLI_L1WAKEUP
	.comm	_PACKET_NOACK,8,3               ## @PACKET_NOACK
	.comm	_B_ACKPENDING,4,2               ## @B_ACKPENDING
	.comm	_BC_FLG_BUSY,4,2                ## @BC_FLG_BUSY
	.comm	_B_XMTBUFREADY,4,2              ## @B_XMTBUFREADY
	.no_dead_strip	_modem_fill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function modem_fill
_modem_fill:                            ; @modem_fill
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _FLG_LLI_L1WAKEUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLG_LLI_L1WAKEUP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x1, [x19, #40]
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _PACKET_NOACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PACKET_NOACK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	add	x20, x19, #32
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #8]
	ldr	w9, [x19, #36]
	add	w8, w9, w8
	str	w8, [x19, #36]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh6:
	adrp	x8, _B_ACKPENDING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B_ACKPENDING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_schedule_event
LBB0_5:
	ldr	x0, [x19, #24]
	bl	_dev_kfree_skb_any
	str	xzr, [x19, #24]
LBB0_6:
	add	x0, x19, #16
	bl	_skb_dequeue
	str	x0, [x19, #24]
	cbz	x0, LBB0_9
; %bb.7:
	str	xzr, [x19, #8]
Lloh9:
	adrp	x8, _BC_FLG_BUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BC_FLG_BUSY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_and_set_bit
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_modem
LBB0_9:
Lloh12:
	adrp	x8, _BC_FLG_BUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BC_FLG_BUSY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_and_clear_bit
Lloh15:
	adrp	x8, _B_XMTBUFREADY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _B_XMTBUFREADY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_schedule_event
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FLG_LLI_L1WAKEUP,4,2           ; @FLG_LLI_L1WAKEUP
	.comm	_PACKET_NOACK,8,3               ; @PACKET_NOACK
	.comm	_B_ACKPENDING,4,2               ; @B_ACKPENDING
	.comm	_BC_FLG_BUSY,4,2                ; @BC_FLG_BUSY
	.comm	_B_XMTBUFREADY,4,2              ; @B_XMTBUFREADY
	.no_dead_strip	_modem_fill
.subsections_via_symbols
