	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_stat_try_enable
_isp_stat_try_enable:                   ## @isp_stat_try_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$0, 40(%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	_ISPSTAT_ENABLING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	cmpl	$0, 64(%rbx)
	je	LBB0_3
LBB0_7:
	movq	16(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, 56(%rbx)
	je	LBB0_7
## %bb.4:
	movl	$1, 8(%rbx)
	movq	%rbx, %rdi
	callq	_isp_stat_buf_next
	movq	40(%rbx), %rsi
	movq	48(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	32(%rbx), %esi
	movq	%rbx, %rdi
	callq	_isp_stat_buf_insert_magic
	movq	%rbx, %rdi
	callq	_IS_H3A
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	28(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
LBB0_6:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_isp_stat_pcr_enable
	movq	16(%rbx), %rdi
	callq	_spin_unlock_irqrestore
	movq	16(%rbx), %rax
	movl	4(%rax), %edi
	movl	24(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ISPSTAT_ENABLING,8,3           ## @ISPSTAT_ENABLING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: module is enabled.\n"

	.no_dead_strip	_isp_stat_try_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_stat_try_enable
_isp_stat_try_enable:                   ; @isp_stat_try_enable
	.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, #40]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _ISPSTAT_ENABLING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISPSTAT_ENABLING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #64]
	cbz	w8, LBB0_5
LBB0_3:
	ldr	x0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_3
; %bb.6:
	mov	w8, #1
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_isp_stat_buf_next
	ldp	x1, x8, [x19, #40]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	w1, [x19, #32]
	mov	x0, x19
	bl	_isp_stat_buf_insert_magic
	mov	x0, x19
	bl	_IS_H3A
	cbnz	w0, LBB0_8
; %bb.7:
	add	x0, x19, #28
	mov	w1, #0
	bl	_atomic_set
LBB0_8:
	mov	x0, x19
	mov	w1, #1
	bl	_isp_stat_pcr_enable
	ldr	x0, [x19, #16]
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	ldr	w2, [x19, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ISPSTAT_ENABLING,8,3           ; @ISPSTAT_ENABLING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: module is enabled.\n"

	.no_dead_strip	_isp_stat_try_enable
.subsections_via_symbols
