	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function retry_firmware
_retry_firmware:                        ## @retry_firmware
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_fw_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_fw_state@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_FW_TRY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.3:
	xorl	%ebx, %ebx
	cmpq	%rcx, %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	___obtain_firmware
	movq	(%r15), %rax
	movq	_FW_FINAL@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	sete	%bl
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	cmpq	%rcx, %rax
	jne	LBB0_5
## %bb.2:
	movq	_FW_FINAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_5:
	movq	_fw_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fw_mutex,4,2                   ## @fw_mutex
	.comm	_fw_state,8,3                   ## @fw_state
	.comm	_FW_TRY,8,3                     ## @FW_TRY
	.comm	_FW_FINAL,8,3                   ## @FW_FINAL
	.no_dead_strip	_retry_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function retry_firmware
_retry_firmware:                        ; @retry_firmware
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _fw_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _fw_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x21, _fw_state@GOTPAGE
Lloh3:
	ldr	x21, [x21, _fw_state@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _FW_TRY@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FW_TRY@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	cbz	w20, LBB0_3
; %bb.1:
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	___obtain_firmware
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _FW_FINAL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FW_FINAL@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w19, eq
	b	LBB0_6
LBB0_3:
	mov	w19, #0
	b.ne	LBB0_6
; %bb.4:
Lloh10:
	adrp	x8, _FW_FINAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FW_FINAL@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x21]
	b	LBB0_6
LBB0_5:
	mov	w19, #0
LBB0_6:
Lloh13:
	adrp	x0, _fw_mutex@GOTPAGE
Lloh14:
	ldr	x0, [x0, _fw_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_fw_mutex,4,2                   ; @fw_mutex
	.comm	_fw_state,8,3                   ; @fw_state
	.comm	_FW_TRY,8,3                     ; @FW_TRY
	.comm	_FW_FINAL,8,3                   ; @FW_FINAL
	.no_dead_strip	_retry_firmware
.subsections_via_symbols
