	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdlc_flush
_hdlc_flush:                            ## @hdlc_flush
	.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
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	_skb_trim
	jmp	LBB0_6
LBB0_2:
	cmpl	$0, 24(%rbx)
	jne	LBB0_6
## %bb.3:
	movq	_SBUFSIZE@GOTPCREL(%rip), %rax
	movq	_HW_HDR_LEN@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	callq	_dev_alloc_skb
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_skb_reserve
	jmp	LBB0_6
LBB0_5:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_6:
	movq	_PPP_INITFCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SBUFSIZE,8,3                   ## @SBUFSIZE
	.comm	_HW_HDR_LEN,8,3                 ## @HW_HDR_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate skb\n"

	.comm	_PPP_INITFCS,4,2                ## @PPP_INITFCS
	.no_dead_strip	_hdlc_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdlc_flush
_hdlc_flush:                            ; @hdlc_flush
	.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, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
	mov	w1, #0
	bl	_skb_trim
	b	LBB0_6
LBB0_2:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _SBUFSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SBUFSIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x20, _HW_HDR_LEN@GOTPAGE
Lloh4:
	ldr	x20, [x20, _HW_HDR_LEN@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_dev_alloc_skb
	str	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x1, [x20]
	bl	_skb_reserve
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_6:
Lloh7:
	adrp	x8, _PPP_INITFCS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PPP_INITFCS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SBUFSIZE,8,3                   ; @SBUFSIZE
	.comm	_HW_HDR_LEN,8,3                 ; @HW_HDR_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate skb\n"

	.comm	_PPP_INITFCS,4,2                ; @PPP_INITFCS
	.no_dead_strip	_hdlc_flush
.subsections_via_symbols
