	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nforce2_abort
_nforce2_abort:                         ## @nforce2_abort
	.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
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_NVIDIA_SMB_CTRL_ABORT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %edi
	movq	_NVIDIA_SMB_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movl	$-1, %ebx
	movq	_NVIDIA_SMB_STATUS_ABRT@GOTPCREL(%rip), %r15
	movq	_NVIDIA_SMB_STATUS_ABRT_STS@GOTPCREL(%rip), %r12
	movq	_MAX_TIMEOUT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_msleep
	movl	(%r15), %edi
	callq	_inb_p
	movzbl	(%r12), %ecx
	testb	%al, %cl
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movb	(%r12), %cl
LBB0_4:
	movl	(%r15), %esi
	movzbl	%cl, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb_p                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Aborting current transaction\n"

	.comm	_NVIDIA_SMB_CTRL_ABORT,1,0      ## @NVIDIA_SMB_CTRL_ABORT
	.comm	_NVIDIA_SMB_CTRL,4,2            ## @NVIDIA_SMB_CTRL
	.comm	_NVIDIA_SMB_STATUS_ABRT,4,2     ## @NVIDIA_SMB_STATUS_ABRT
	.comm	_NVIDIA_SMB_STATUS_ABRT_STS,1,0 ## @NVIDIA_SMB_STATUS_ABRT_STS
	.comm	_MAX_TIMEOUT,4,2                ## @MAX_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"Can't reset the smbus\n"

	.no_dead_strip	_nforce2_abort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nforce2_abort
_nforce2_abort:                         ; @nforce2_abort
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x8, _NVIDIA_SMB_CTRL_ABORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NVIDIA_SMB_CTRL_ABORT@GOTPAGEOFF]
	ldrb	w0, [x8]
Lloh4:
	adrp	x8, _NVIDIA_SMB_CTRL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NVIDIA_SMB_CTRL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_outb_p
	mov	w22, #-1
Lloh7:
	adrp	x20, _NVIDIA_SMB_STATUS_ABRT@GOTPAGE
Lloh8:
	ldr	x20, [x20, _NVIDIA_SMB_STATUS_ABRT@GOTPAGEOFF]
Lloh9:
	adrp	x21, _NVIDIA_SMB_STATUS_ABRT_STS@GOTPAGE
Lloh10:
	ldr	x21, [x21, _NVIDIA_SMB_STATUS_ABRT_STS@GOTPAGEOFF]
Lloh11:
	adrp	x23, _MAX_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x23, [x23, _MAX_TIMEOUT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_msleep
	ldr	w0, [x20]
	bl	_inb_p
	mov	x8, x0
	ldrb	w0, [x21]
	tst	w0, w8
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x23]
	add	w22, w22, #1
	cmp	w22, w8
	b.lt	LBB0_1
; %bb.3:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldrb	w0, [x21]
LBB0_4:
	ldr	w1, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_outb_p
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Aborting current transaction\n"

	.comm	_NVIDIA_SMB_CTRL_ABORT,1,0      ; @NVIDIA_SMB_CTRL_ABORT
	.comm	_NVIDIA_SMB_CTRL,4,2            ; @NVIDIA_SMB_CTRL
	.comm	_NVIDIA_SMB_STATUS_ABRT,4,2     ; @NVIDIA_SMB_STATUS_ABRT
	.comm	_NVIDIA_SMB_STATUS_ABRT_STS,1,0 ; @NVIDIA_SMB_STATUS_ABRT_STS
	.comm	_MAX_TIMEOUT,4,2                ; @MAX_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"Can't reset the smbus\n"

	.no_dead_strip	_nforce2_abort
.subsections_via_symbols
