	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdlc_frag
_hdlc_frag:                             ## @hdlc_frag
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	32(%rdi), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	decl	32(%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hdlc_flush                     ## TAILCALL
LBB0_1:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_notice
	movq	24(%rbx), %rax
	incl	(%rax)
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rdi
	movq	%rbx, %rdx
	callq	_gigaset_rcv_error
	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_3
## %bb.2:
	movq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_skb_reserve
	jmp	LBB0_4
LBB0_3:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_4:
	movq	_PPP_INITFCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"received partial byte (%d bits)\n"

	.comm	_SBUFSIZE,8,3                   ## @SBUFSIZE
	.comm	_HW_HDR_LEN,8,3                 ## @HW_HDR_LEN
L_.str.1:                               ## @.str.1
	.asciz	"could not allocate skb\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdlc_frag
_hdlc_frag:                             ; @hdlc_frag
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #32]
	sub	w8, w8, #1
	str	w8, [x19, #32]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hdlc_flush
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_notice
	ldr	x8, [x19, #24]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldp	x1, x0, [x19, #8]
	mov	x2, x19
	bl	_gigaset_rcv_error
Lloh2:
	adrp	x8, _SBUFSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SBUFSIZE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x20, _HW_HDR_LEN@GOTPAGE
Lloh6:
	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_4
; %bb.3:
	ldr	x1, [x20]
	bl	_skb_reserve
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_5:
Lloh9:
	adrp	x8, _PPP_INITFCS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PPP_INITFCS@GOTPAGEOFF]
Lloh11:
	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	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"received partial byte (%d bits)\n"

	.comm	_SBUFSIZE,8,3                   ; @SBUFSIZE
	.comm	_HW_HDR_LEN,8,3                 ; @HW_HDR_LEN
l_.str.1:                               ; @.str.1
	.asciz	"could not allocate skb\n"

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