	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_b3_res
_reset_b3_res:                          ## @reset_b3_res
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	xorl	%eax, %eax
	cmpl	$65536, %ebx                    ## imm = 0x10000
	jb	LBB0_5
## %bb.1:
	testq	%r15, %r15
	je	LBB0_5
## %bb.2:
	movl	(%r15), %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	jne	LBB0_5
## %bb.3:
	sarl	$16, %ebx
	movslq	%ebx, %rdx
	movq	(%r14), %rcx
	movl	(%rcx,%rdx,4), %esi
	movq	_INC_RES_PENDING@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %esi
	jne	LBB0_5
## %bb.4:
	movq	_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx,%rdx,4)
	movq	_N_RESET_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_nl_req_ncci
	movl	$1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset_b3_res"

	.comm	_INC_RES_PENDING,4,2            ## @INC_RES_PENDING
	.comm	_CONNECTED,4,2                  ## @CONNECTED
	.comm	_N_RESET_ACK,4,2                ## @N_RESET_ACK
	.no_dead_strip	_reset_b3_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_b3_res
_reset_b3_res:                          ; @reset_b3_res
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x3
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
	mov	w0, #0
	cmp	w21, #16, lsl #12               ; =65536
	b.lo	LBB0_6
; %bb.1:
	cbz	x19, LBB0_6
; %bb.2:
	ldr	w8, [x19]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.3:
	sbfx	x2, x21, #16, #16
	ldr	x8, [x20]
	ldr	w9, [x8, x2, lsl #2]
Lloh2:
	adrp	x10, _INC_RES_PENDING@GOTPAGE
Lloh3:
	ldr	x10, [x10, _INC_RES_PENDING@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x9, _CONNECTED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CONNECTED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x8, x2, lsl #2]
Lloh8:
	adrp	x8, _N_RESET_ACK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _N_RESET_ACK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_nl_req_ncci
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset_b3_res"

	.comm	_INC_RES_PENDING,4,2            ; @INC_RES_PENDING
	.comm	_CONNECTED,4,2                  ; @CONNECTED
	.comm	_N_RESET_ACK,4,2                ; @N_RESET_ACK
	.no_dead_strip	_reset_b3_res
.subsections_via_symbols
