	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nforce2_check_status
_nforce2_check_status:                  ## @nforce2_check_status
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	xorl	%ebx, %ebx
	movq	_NVIDIA_SMB_STS@GOTPCREL(%rip), %r13
	movq	_MAX_TIMEOUT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_inb_p
	testb	%al, %al
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %edx
	movl	(%r12), %ecx
	cmpl	%ecx, %ebx
	movl	%edx, %ebx
	jl	LBB0_1
## %bb.4:
	cmpl	%ecx, %edx
	jle	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_nforce2_abort
LBB0_7:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	movl	(%r12), %ecx
	movl	%ebx, %edx
	cmpl	%ecx, %edx
	jg	LBB0_5
LBB0_8:
	movq	_NVIDIA_SMB_STS_DONE@GOTPCREL(%rip), %rcx
	testb	%al, (%rcx)
	je	LBB0_11
## %bb.9:
	movq	_NVIDIA_SMB_STS_STATUS@GOTPCREL(%rip), %rcx
	testb	%al, (%rcx)
	je	LBB0_10
LBB0_11:
	movzbl	%al, %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_NVIDIA_SMB_STS,4,2             ## @NVIDIA_SMB_STS
	.comm	_MAX_TIMEOUT,4,2                ## @MAX_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMBus Timeout!\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_NVIDIA_SMB_STS_DONE,1,0        ## @NVIDIA_SMB_STS_DONE
	.comm	_NVIDIA_SMB_STS_STATUS,1,0      ## @NVIDIA_SMB_STS_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"Transaction failed (0x%02x)!\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_nforce2_check_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nforce2_check_status
_nforce2_check_status:                  ; @nforce2_check_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w21, #0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x23, _NVIDIA_SMB_STS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NVIDIA_SMB_STS@GOTPAGEOFF]
Lloh2:
	adrp	x22, _MAX_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MAX_TIMEOUT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_msleep
	ldr	w0, [x23]
	bl	_inb_p
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w9, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	mov	x21, x9
	b.lt	LBB0_1
; %bb.3:
	mov	x21, x9
	cmp	w21, w8
	b.gt	LBB0_8
LBB0_4:
Lloh4:
	adrp	x8, _NVIDIA_SMB_STS_DONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NVIDIA_SMB_STS_DONE@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _NVIDIA_SMB_STS_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVIDIA_SMB_STS_STATUS@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
LBB0_6:
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	ldr	w8, [x22]
	cmp	w21, w8
	b.le	LBB0_4
LBB0_8:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_nforce2_abort
LBB0_10:
Lloh14:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NVIDIA_SMB_STS,4,2             ; @NVIDIA_SMB_STS
	.comm	_MAX_TIMEOUT,4,2                ; @MAX_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMBus Timeout!\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_NVIDIA_SMB_STS_DONE,1,0        ; @NVIDIA_SMB_STS_DONE
	.comm	_NVIDIA_SMB_STS_STATUS,1,0      ; @NVIDIA_SMB_STS_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"Transaction failed (0x%02x)!\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_nforce2_check_status
.subsections_via_symbols
