	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_cmd_callback
_carl9170_cmd_callback:                 ## @carl9170_cmd_callback
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leal	-4(%r12), %r15d
	xorl	%edi, %edi
	cmpl	%r15d, (%rbx)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	40(%rbx), %rdi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_warn
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	8(%rbx), %rdx
	movl	32(%rbx), %ecx
	addl	$4, %ecx
	andl	$63, %ecx
	leaq	L_.str.1(%rip), %rdi
	callq	_print_hex_dump_bytes
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_print_hex_dump_bytes
	movq	_CARL9170_RR_INVALID_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_carl9170_restart
LBB0_2:
	leaq	16(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	cmpl	$4, %r12d
	jl	LBB0_5
## %bb.4:
	addq	$4, %r14
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
LBB0_5:
	movq	$0, 24(%rbx)
LBB0_6:
	addq	$20, %rbx
	movq	%rbx, %rdi
	callq	_complete
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"received invalid command response:got %d, instead of %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"carl9170 cmd:"

	.comm	_DUMP_PREFIX_OFFSET,4,2         ## @DUMP_PREFIX_OFFSET
L_.str.2:                               ## @.str.2
	.asciz	"carl9170 rsp:"

	.comm	_CARL9170_RR_INVALID_RSP,4,2    ## @CARL9170_RR_INVALID_RSP
	.no_dead_strip	_carl9170_cmd_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_cmd_callback
_carl9170_cmd_callback:                 ; @carl9170_cmd_callback
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w8, [x0]
	sub	w20, w1, #4
	cmp	w8, w20
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #40]
	ldr	w3, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
Lloh2:
	adrp	x23, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	x2, [x19, #8]
	ldr	w8, [x19, #32]
	add	w8, w8, #4
	and	w3, w8, #0x3f
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_print_hex_dump_bytes
	ldr	w1, [x23]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	bl	_print_hex_dump_bytes
Lloh8:
	adrp	x8, _CARL9170_RR_INVALID_RSP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CARL9170_RR_INVALID_RSP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_carl9170_restart
LBB0_2:
	add	x23, x19, #16
	mov	x0, x23
	bl	_spin_lock
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.3:
	cmp	w22, #4
	b.lt	LBB0_5
; %bb.4:
	add	x1, x21, #4
	mov	x2, x20
	bl	_memcpy
LBB0_5:
	str	xzr, [x19, #24]
LBB0_6:
	add	x0, x19, #20
	bl	_complete
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"received invalid command response:got %d, instead of %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"carl9170 cmd:"

	.comm	_DUMP_PREFIX_OFFSET,4,2         ; @DUMP_PREFIX_OFFSET
l_.str.2:                               ; @.str.2
	.asciz	"carl9170 rsp:"

	.comm	_CARL9170_RR_INVALID_RSP,4,2    ; @CARL9170_RR_INVALID_RSP
	.no_dead_strip	_carl9170_cmd_callback
.subsections_via_symbols
