	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trans_receive
_trans_receive:                         ## @trans_receive
	.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	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	24(%rdx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.17:
	decl	24(%r15)
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hdlc_flush                     ## TAILCALL
LBB0_1:
	movq	(%r15), %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_SBUFSIZE@GOTPCREL(%rip), %rax
	movq	_HW_HDR_LEN@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	callq	_dev_alloc_skb
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	%rax, %r13
	movq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_skb_reserve
LBB0_4:
	movl	(%r13), %eax
	movq	16(%r15), %rcx
	addl	%eax, (%rcx)
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.5:
	movq	_TRANSBUFSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	subl	%eax, %r14d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r14d
	testl	%r12d, %r12d
	je	LBB0_16
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	cmpl	%r14d, %r12d
	movl	%r14d, %esi
	cmovbl	%r12d, %esi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_skb_put
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r13
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %r12d
	decq	%r12
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx,%r15), %edi
	callq	_bitrev8
	movb	%al, (%r13,%r15)
	leal	-1(%r14), %eax
	movl	%r15d, %ecx
	incq	%r15
	cmpl	%ecx, %r12d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpl	$1, %r14d
	movl	%eax, %r14d
	ja	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	%r15, %rbx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	subl	%r15d, %r12d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %eax
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	_HW_HDR_LEN@GOTPCREL(%rip), %r14
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_DEBUG_STREAM_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dump_bytes
	movq	8(%r15), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_gigaset_rcv_skb
	movq	(%r14), %rdi
	movq	_SBUFSIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_dev_alloc_skb
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r13
	movq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_skb_reserve
	movq	_TRANSBUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.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	_TRANSBUFSIZE,4,2               ## @TRANSBUFSIZE
	.comm	_DEBUG_STREAM_DUMP,4,2          ## @DEBUG_STREAM_DUMP
L_.str.1:                               ## @.str.1
	.asciz	"rcv data"

	.no_dead_strip	_trans_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trans_receive
_trans_receive:                         ; @trans_receive
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x2, #24]
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #24]
	sub	w8, w8, #1
	str	w8, [x19, #24]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_hdlc_flush
LBB0_2:
	ldr	x22, [x19]
	cmp	x22, #0
	cset	w0, eq
	bl	_unlikely
Lloh0:
	adrp	x8, _SBUFSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SBUFSIZE@GOTPAGEOFF]
Lloh2:
	adrp	x26, _HW_HDR_LEN@GOTPAGE
Lloh3:
	ldr	x26, [x26, _HW_HDR_LEN@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x8]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_dev_alloc_skb
	str	x0, [x19]
	cbz	x0, LBB0_17
; %bb.4:
	mov	x22, x0
	ldr	x1, [x26]
	bl	_skb_reserve
LBB0_5:
	ldr	w8, [x22]
	ldr	x9, [x19, #16]
	ldr	w10, [x9]
	add	w10, w10, w8
	str	w10, [x9]
	cbz	w20, LBB0_16
; %bb.6:
Lloh4:
	adrp	x27, _TRANSBUFSIZE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _TRANSBUFSIZE@GOTPAGEOFF]
	ldr	w9, [x27]
	sub	w25, w9, w8
Lloh6:
	adrp	x28, _DEBUG_STREAM_DUMP@GOTPAGE
Lloh7:
	ldr	x28, [x28, _DEBUG_STREAM_DUMP@GOTPAGEOFF]
Lloh8:
	adrp	x23, l_.str.1@PAGE
Lloh9:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x25, x8
	cbz	w20, LBB0_16
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w20, w25
	csel	w1, w20, w25, lo
	mov	x0, x22
	bl	_skb_put
	cmp	w25, #1
	b.lt	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, x0
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w0, [x21], #1
	bl	_bitrev8
	strb	w0, [x24], #1
	sub	w8, w25, #1
	subs	w20, w20, #1
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	cmp	w25, #1
	mov	x25, x8
	b.hi	LBB0_10
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	cbnz	w8, LBB0_7
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, x25
	cbnz	w8, LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x28]
	ldp	w3, w2, [x22]
	mov	x1, x23
	bl	_dump_bytes
	ldr	x1, [x19, #8]
	mov	x0, x22
	mov	x2, x19
	bl	_gigaset_rcv_skb
Lloh10:
	adrp	x8, _SBUFSIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SBUFSIZE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_dev_alloc_skb
	str	x0, [x19]
	cbz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, x0
	ldr	x1, [x26]
	bl	_skb_reserve
	ldr	w8, [x27]
	b	LBB0_7
LBB0_16:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.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	_TRANSBUFSIZE,4,2               ; @TRANSBUFSIZE
	.comm	_DEBUG_STREAM_DUMP,4,2          ; @DEBUG_STREAM_DUMP
l_.str.1:                               ; @.str.1
	.asciz	"rcv data"

	.no_dead_strip	_trans_receive
.subsections_via_symbols
