	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_check_sequence
_carl9170_check_sequence:               ## @carl9170_check_sequence
	.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	(%rdi), %ecx
	xorl	%r14d, %r14d
	cmpl	$-1, %ecx
	jl	LBB0_5
## %bb.1:
	movl	%esi, %r8d
	movq	%rdi, %rbx
	je	LBB0_4
## %bb.2:
	cmpl	%r8d, %ecx
	je	LBB0_4
## %bb.3:
	movl	%r8d, %eax
	subl	%ecx, %eax
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	divl	4(%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_err
	movq	_CARL9170_RR_LOST_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_carl9170_restart
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_4:
	incl	%r8d
	xorl	%r14d, %r14d
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	4(%rbx)
	movl	%edx, (%rbx)
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lost %d command responses/traps! w:%d g:%d\n"

	.comm	_CARL9170_RR_LOST_RSP,4,2       ## @CARL9170_RR_LOST_RSP
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_carl9170_check_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_check_sequence
_carl9170_check_sequence:               ; @carl9170_check_sequence
	.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
	ldr	w3, [x0]
	cmn	w3, #1
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	mov	x4, x1
	mov	x19, x0
	ccmp	w3, w1, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	add	w8, w4, #1
	ldr	w9, [x19, #4]
	udiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
	sub	w8, w4, w3
	ldr	w9, [x19, #4]
	udiv	w10, w8, w9
	msub	w2, w10, w9, w8
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_err
Lloh2:
	adrp	x8, _CARL9170_RR_LOST_RSP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CARL9170_RR_LOST_RSP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_carl9170_restart
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lost %d command responses/traps! w:%d g:%d\n"

	.comm	_CARL9170_RR_LOST_RSP,4,2       ; @CARL9170_RR_LOST_RSP
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_carl9170_check_sequence
.subsections_via_symbols
