	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nforce2_probe_smb
_nforce2_probe_smb:                     ## @nforce2_probe_smb
	.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	%r8, %r14
	movq	%rcx, %r12
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_pci_resource_start
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pci_resource_len
	movl	%eax, %esi
	movl	%eax, 4(%r12)
	movl	(%r12), %edi
	jmp	LBB0_4
LBB0_2:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_pci_read_config_word
	movq	_PCIBIOS_SUCCESSFUL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.3:
	movq	_PCI_BASE_ADDRESS_IO_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	-44(%rbp), %edi
	movl	%edi, (%r12)
	movl	$64, 4(%r12)
	movl	$64, %esi
LBB0_4:
	movq	_nforce2_driver@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_acpi_check_region
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movl	(%r12), %edi
	movl	4(%r12), %esi
	movl	(%r13), %edx
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movq	_I2C_CLASS_SPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	8(%r12), %rbx
	movl	%ecx, 8(%r12)
	movq	_smbus_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r12)
	movq	%r12, 32(%r12)
	movq	%r15, 16(%r12)
	movl	(%r12), %ecx
	movl	24(%r12), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	movl	(%r12), %edx
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movl	4(%r12), %esi
	movl	%edx, %edi
	callq	_release_region
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	leaq	16(%r12), %rdi
	movl	(%r12), %edx
	movl	4(%r12), %eax
	leal	(%rdx,%rax), %ecx
	decl	%ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_9:
	addq	$16, %r12
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIBIOS_SUCCESSFUL,8,3         ## @PCIBIOS_SUCCESSFUL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading PCI config for %s\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_PCI_BASE_ADDRESS_IO_MASK,4,2   ## @PCI_BASE_ADDRESS_IO_MASK
	.comm	_nforce2_driver,4,2             ## @nforce2_driver
L_.str.1:                               ## @.str.1
	.asciz	"Error requesting region %02x .. %02X for %s\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_I2C_CLASS_HWMON,4,2            ## @I2C_CLASS_HWMON
	.comm	_I2C_CLASS_SPD,4,2              ## @I2C_CLASS_SPD
	.comm	_smbus_algorithm,4,2            ## @smbus_algorithm
L_.str.2:                               ## @.str.2
	.asciz	"SMBus nForce2 adapter at %04x"

L_.str.3:                               ## @.str.3
	.asciz	"nForce2 SMBus adapter at %#x\n"

	.no_dead_strip	_nforce2_probe_smb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nforce2_probe_smb
_nforce2_probe_smb:                     ; @nforce2_probe_smb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_pci_resource_start
	str	w0, [x19]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x23
	bl	_pci_resource_len
	mov	x1, x0
	str	w0, [x19, #4]
	ldr	w0, [x19]
	b	LBB0_4
LBB0_2:
	add	x2, sp, #28
	mov	x0, x20
	mov	x1, x22
	bl	_pci_read_config_word
Lloh0:
	adrp	x8, _PCIBIOS_SUCCESSFUL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIBIOS_SUCCESSFUL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _PCI_BASE_ADDRESS_IO_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_BASE_ADDRESS_IO_MASK@GOTPAGEOFF]
	ldr	w9, [sp, #28]
Lloh5:
	ldr	w8, [x8]
	and	w0, w8, w9
	mov	w1, #64
	stp	w0, w1, [x19]
LBB0_4:
Lloh6:
	adrp	x23, _nforce2_driver@GOTPAGE
Lloh7:
	ldr	x23, [x23, _nforce2_driver@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_acpi_check_region
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.5:
	ldp	w0, w1, [x19]
	ldr	w2, [x23]
	bl	_request_region
	cbz	w0, LBB0_9
; %bb.6:
Lloh8:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _I2C_CLASS_HWMON@GOTPAGE
Lloh12:
	ldr	x9, [x9, _I2C_CLASS_HWMON@GOTPAGEOFF]
	str	w8, [x19, #48]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _I2C_CLASS_SPD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _I2C_CLASS_SPD@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x22, x19
	str	w8, [x22, #8]!
Lloh17:
	adrp	x8, _smbus_algorithm@GOTPAGE
Lloh18:
	ldr	x8, [x8, _smbus_algorithm@GOTPAGEOFF]
	stp	x19, x8, [x19, #32]
	mov	x21, x19
	str	x20, [x21, #16]!
	ldr	w0, [x19, #24]
	ldr	w3, [x19]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	mov	x0, x22
	bl	_i2c_add_adapter
	mov	x22, x0
	ldr	w2, [x19]
	cbz	w0, LBB0_11
; %bb.7:
	ldr	w1, [x19, #4]
	mov	x0, x2
	bl	_release_region
	b	LBB0_12
LBB0_8:
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh23:
	adrp	x8, _EIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	add	x0, x19, #16
	ldp	w8, w9, [x19]
	add	w9, w8, w9
	sub	w9, w9, #1
	stp	x9, x21, [sp, #8]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh27:
	adrp	x8, _EBUSY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_11:
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_info
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIBIOS_SUCCESSFUL,8,3         ; @PCIBIOS_SUCCESSFUL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading PCI config for %s\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_PCI_BASE_ADDRESS_IO_MASK,4,2   ; @PCI_BASE_ADDRESS_IO_MASK
	.comm	_nforce2_driver,4,2             ; @nforce2_driver
l_.str.1:                               ; @.str.1
	.asciz	"Error requesting region %02x .. %02X for %s\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_I2C_CLASS_HWMON,4,2            ; @I2C_CLASS_HWMON
	.comm	_I2C_CLASS_SPD,4,2              ; @I2C_CLASS_SPD
	.comm	_smbus_algorithm,4,2            ; @smbus_algorithm
l_.str.2:                               ; @.str.2
	.asciz	"SMBus nForce2 adapter at %04x"

l_.str.3:                               ; @.str.3
	.asciz	"nForce2 SMBus adapter at %#x\n"

	.no_dead_strip	_nforce2_probe_smb
.subsections_via_symbols
