	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_trans_handle_rx_ctl_packet ## -- Begin function qtnf_trans_handle_rx_ctl_packet
	.p2align	4, 0x90
_qtnf_trans_handle_rx_ctl_packet:       ## @qtnf_trans_handle_rx_ctl_packet
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %rbx
	xorl	%edi, %edi
	cmpl	$8, (%rsi)
	setb	%dil
	callq	_unlikely
	movl	(%r15), %r12d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_pr_warn
	movq	%r15, %rdi
	callq	_dev_kfree_skb
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_2:
	movl	4(%rbx), %edi
	callq	_le16_to_cpu
	xorl	%edi, %edi
	cmpl	%eax, %r12d
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %r14d
	movl	4(%rbx), %edi
	callq	_le16_to_cpu
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_warn
	movq	%r15, %rdi
	callq	_dev_kfree_skb
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_4:
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	cmpl	$128, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.6:
	xorl	%edi, %edi
	cmpl	$4, (%r15)
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_13
LBB0_9:
	xorl	%edi, %edi
	cmpl	$4, (%r15)
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_13
LBB0_12:
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
LBB0_13:
	xorl	%eax, %eax
	callq	_pr_warn
	movq	%r15, %rdi
	callq	_dev_kfree_skb
LBB0_14:
	movl	$-1, %ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qtnf_trans_signal_cmdresp
	jmp	LBB0_14
LBB0_11:
	movq	%r14, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qtnf_trans_event_enqueue       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet is too small: %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"cmd reply length mismatch: %u != %u\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.2:                               ## @.str.2
	.asciz	"cmd reply too short: %u\n"

L_.str.3:                               ## @.str.3
	.asciz	"event too short: %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"unknown packet type: %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_trans_handle_rx_ctl_packet ; -- Begin function qtnf_trans_handle_rx_ctl_packet
	.p2align	2
_qtnf_trans_handle_rx_ctl_packet:       ; @qtnf_trans_handle_rx_ctl_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x1, #8]
	ldr	w8, [x1]
	cmp	w8, #8
	cset	w0, lo
	bl	_unlikely
	ldr	w21, [x19]
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_warn
	mov	x0, x19
	bl	_dev_kfree_skb
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	w0, [x22, #4]
	bl	_le16_to_cpu
	cmp	w21, w0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w20, [x19]
	ldr	w0, [x22, #4]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_warn
	mov	x0, x19
	bl	_dev_kfree_skb
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	w0, [x22]
	bl	_le16_to_cpu
	cmp	w0, #128
	b.eq	LBB0_10
; %bb.7:
	cmp	w0, #129
	b.ne	LBB0_12
; %bb.8:
	ldr	w8, [x19]
	cmp	w8, #4
	cset	w0, lo
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.9:
	ldr	w1, [x19]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_10:
	ldr	w8, [x19]
	cmp	w8, #4
	cset	w0, lo
	bl	_unlikely
	cbz	x0, LBB0_16
; %bb.11:
	ldr	w1, [x19]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_12:
	ldr	w0, [x22]
	bl	_le16_to_cpu
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_13:
	bl	_pr_warn
	mov	x0, x19
	bl	_dev_kfree_skb
LBB0_14:
	mov	w0, #-1
	b	LBB0_5
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	bl	_qtnf_trans_signal_cmdresp
	b	LBB0_14
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_qtnf_trans_event_enqueue
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet is too small: %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"cmd reply length mismatch: %u != %u\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.2:                               ; @.str.2
	.asciz	"cmd reply too short: %u\n"

l_.str.3:                               ; @.str.3
	.asciz	"event too short: %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"unknown packet type: %x\n"

.subsections_via_symbols
