	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function occ_poll
_occ_poll:                              ## @occ_poll
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	(%rdi), %eax
	movl	4(%rdi), %ecx
	leal	1(%rcx), %edx
	leal	1(%rcx,%rax), %esi
	movl	%edx, 4(%rdi)
	movl	%ecx, -64(%rbp)
	movq	$0, -60(%rbp)
	movl	$1, -52(%rbp)
	movl	%eax, -48(%rbp)
	movzbl	%sil, %eax
	sarl	$8, %esi
	movl	%esi, -44(%rbp)
	movl	%eax, -40(%rbp)
	movl	$0, -36(%rbp)
	leaq	-64(%rbp), %rsi
	callq	*8(%rdi)
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%r14d, 16(%rbx)
	movq	40(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rbx)
	movq	_OCC_ERROR_COUNT_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_9
## %bb.2:
	movl	%r14d, 20(%rbx)
	jmp	LBB0_9
LBB0_3:
	movq	$0, 40(%rbx)
	movq	$0, 16(%rbx)
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	_OCC_STATE_SAFE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movq	24(%rbx), %rsi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.5:
	movq	_OCC_SAFE_TIMEOUT@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	_EHOSTDOWN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 20(%rbx)
	jmp	LBB0_9
LBB0_8:
	movq	$0, 24(%rbx)
	jmp	LBB0_9
LBB0_7:
	movq	%rdi, 24(%rbx)
LBB0_9:
	movq	%rbx, %rdi
	callq	_occ_sysfs_poll_done
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_OCC_ERROR_COUNT_THRESHOLD,8,3  ## @OCC_ERROR_COUNT_THRESHOLD
	.comm	_OCC_STATE_SAFE,8,3             ## @OCC_STATE_SAFE
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_OCC_SAFE_TIMEOUT,8,3           ## @OCC_SAFE_TIMEOUT
	.comm	_EHOSTDOWN,4,2                  ## @EHOSTDOWN
	.no_dead_strip	_occ_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function occ_poll
_occ_poll:                              ; @occ_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldp	w8, w9, [x0]
	add	w10, w9, #1
	add	w11, w10, w8
	str	w10, [x0, #4]
	stp	w9, wzr, [sp, #8]
	mov	w9, #1
	stp	wzr, w9, [sp, #16]
	asr	w9, w11, #8
	stp	w8, w9, [sp, #24]
	and	w8, w11, #0xff
	stp	w8, wzr, [sp, #32]
	ldr	x8, [x0, #8]
	add	x1, sp, #8
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.1:
	str	w20, [x19, #16]
	ldr	x8, [x19, #40]
	add	x9, x8, #1
	str	x9, [x19, #40]
Lloh3:
	adrp	x9, _OCC_ERROR_COUNT_THRESHOLD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OCC_ERROR_COUNT_THRESHOLD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_9
; %bb.2:
	str	w20, [x19, #20]
	b	LBB0_9
LBB0_3:
	str	xzr, [x19, #40]
	str	xzr, [x19, #16]
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _OCC_STATE_SAFE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OCC_STATE_SAFE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x19, #24]
Lloh9:
	adrp	x9, _jiffies@GOTPAGE
Lloh10:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x9]
	cbz	x8, LBB0_8
; %bb.5:
Lloh12:
	adrp	x9, _OCC_SAFE_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OCC_SAFE_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cbz	x0, LBB0_9
; %bb.6:
Lloh15:
	adrp	x8, _EHOSTDOWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EHOSTDOWN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #20]
	b	LBB0_9
LBB0_7:
	str	xzr, [x19, #24]
	b	LBB0_9
LBB0_8:
	str	x0, [x19, #24]
LBB0_9:
	mov	x0, x19
	bl	_occ_sysfs_poll_done
	ldur	x8, [x29, #-24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_OCC_ERROR_COUNT_THRESHOLD,8,3  ; @OCC_ERROR_COUNT_THRESHOLD
	.comm	_OCC_STATE_SAFE,8,3             ; @OCC_STATE_SAFE
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_OCC_SAFE_TIMEOUT,8,3           ; @OCC_SAFE_TIMEOUT
	.comm	_EHOSTDOWN,4,2                  ; @EHOSTDOWN
	.no_dead_strip	_occ_poll
.subsections_via_symbols
