	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reinit_and_retry
_reinit_and_retry:                      ## @reinit_and_retry
	.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
	movq	(%rdi), %rcx
	leaq	-1(%rcx), %rax
	movq	%rax, (%rdi)
	xorl	%eax, %eax
	cmpq	$2, %rcx
	jl	LBB0_9
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	8(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.2:
	movq	16(%rbx), %rdx
	shlq	$4, %rcx
	xorl	%eax, %eax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rsi)
	jg	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_4
LBB0_5:
	movl	24(%rbx), %edi
	testl	%r14d, %r14d
	js	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	movq	_PC_CID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movl	%r14d, %edx
	shlq	$4, %rdx
	orl	%eax, 8(%rcx,%rdx)
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_8:
	movq	_MS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_schedule_init
	movl	$1, %eax
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not enter cid mode. Reinit device and try again.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not get a call id. Reinit device and try again.\n"

	.comm	_PC_CID,4,2                     ## @PC_CID
	.comm	_MS_INIT,4,2                    ## @MS_INIT
	.no_dead_strip	_reinit_and_retry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reinit_and_retry
_reinit_and_retry:                      ; @reinit_and_retry
	.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	x8, [x0]
	sub	x9, x8, #1
	str	x9, [x0]
	cmp	x8, #2
	b.ge	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	x9, [x19, #16]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	x10, #0
	b.gt	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_6:
	ldr	w0, [x19, #24]
	tbnz	w20, #31, LBB0_8
; %bb.7:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
Lloh2:
	adrp	x8, _PC_CID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PC_CID@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	add	x9, x9, w20, uxtw #4
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_9:
Lloh7:
	adrp	x8, _MS_INIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MS_INIT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_schedule_init
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not enter cid mode. Reinit device and try again.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not get a call id. Reinit device and try again.\n"

	.comm	_PC_CID,4,2                     ; @PC_CID
	.comm	_MS_INIT,4,2                    ; @MS_INIT
	.no_dead_strip	_reinit_and_retry
.subsections_via_symbols
