	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd756_probe
_amd756_probe:                          ## @amd756_probe
	.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, %r12
	movq	_amd756_ioport@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	movq	%rsi, %r15
	movq	(%rsi), %r13
	movq	_NFORCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	4(%r12), %edi
	callq	_PCI_FUNC
	cmpq	%rbx, %r13
	jne	LBB0_7
## %bb.5:
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.6:
	movq	_SMBBANFORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_pci_read_config_word
	movl	$65532, %edi                    ## imm = 0xFFFC
	andl	(%r14), %edi
	jmp	LBB0_11
LBB0_7:
	cmpl	$3, %eax
	jne	LBB0_12
## %bb.8:
	movq	_SMBGCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_pci_read_config_byte
	testb	$-128, -44(%rbp)
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_10:
	movq	_SMBBA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_pci_read_config_word
	movzbl	1(%r14), %edi
	shll	$8, %edi
	movq	_SMB_ADDR_OFFSET@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
LBB0_11:
	movl	%edi, (%r14)
	movq	_SMB_IOSIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_amd756_driver@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_acpi_check_region
	testl	%eax, %eax
	je	LBB0_15
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	(%r14), %edi
	movl	(%r13), %esi
	movl	(%rbx), %edx
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movq	_SMBREV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_pci_read_config_byte
	movl	-44(%rbp), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movl	(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	_amd756_smbus@GOTPCREL(%rip), %rbx
	movq	%r12, 8(%rbx)
	movl	(%rbx), %edi
	movq	_chipname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rcx
	movl	(%r14), %r8d
	leaq	L_.str.5(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:
	movl	%eax, %ebx
	movl	(%r14), %edi
	movl	(%r13), %esi
	callq	_release_region
	jmp	LBB0_14
LBB0_18:
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_3
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_NFORCE,8,3                     ## @NFORCE
	.comm	_amd756_ioport,4,2              ## @amd756_ioport
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Only one device supported (you have a strange motherboard, btw)\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SMBBANFORCE,4,2                ## @SMBBANFORCE
	.comm	_SMBGCFG,4,2                    ## @SMBGCFG
L_.str.1:                               ## @.str.1
	.asciz	"Error: SMBus controller I/O not enabled!\n"

	.comm	_SMBBA,4,2                      ## @SMBBA
	.comm	_SMB_ADDR_OFFSET,8,3            ## @SMB_ADDR_OFFSET
	.comm	_SMB_IOSIZE,4,2                 ## @SMB_IOSIZE
	.comm	_amd756_driver,4,2              ## @amd756_driver
L_.str.2:                               ## @.str.2
	.asciz	"SMB region 0x%x already in use!\n"

	.comm	_SMBREV,4,2                     ## @SMBREV
L_.str.3:                               ## @.str.3
	.asciz	"SMBREV = 0x%X\n"

L_.str.4:                               ## @.str.4
	.asciz	"AMD756_smba = 0x%X\n"

	.comm	_amd756_smbus,16,3              ## @amd756_smbus
L_.str.5:                               ## @.str.5
	.asciz	"SMBus %s adapter at %04x"

	.comm	_chipname,8,3                   ## @chipname
	.no_dead_strip	_amd756_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd756_probe
_amd756_probe:                          ; @amd756_probe
	.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	x20, x0
Lloh0:
	adrp	x19, _amd756_ioport@GOTPAGE
Lloh1:
	ldr	x19, [x19, _amd756_ioport@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x20
	bl	_dev_err
LBB0_3:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	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_5:
	mov	x21, x1
	ldr	x22, [x1]
Lloh7:
	adrp	x8, _NFORCE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NFORCE@GOTPAGEOFF]
Lloh9:
	ldr	x23, [x8]
	ldr	w0, [x20, #4]
	bl	_PCI_FUNC
	cmp	x22, x23
	b.ne	LBB0_8
; %bb.6:
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.7:
Lloh10:
	adrp	x8, _SMBBANFORCE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SMBBANFORCE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_pci_read_config_word
	ldr	w8, [x19]
	and	w0, w8, #0xfffc
	b	LBB0_12
LBB0_8:
	cmp	w0, #3
	b.ne	LBB0_3
; %bb.9:
Lloh13:
	adrp	x8, _SMBGCFG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SMBGCFG@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_pci_read_config_byte
	ldrb	w8, [sp, #12]
	tbnz	w8, #7, LBB0_11
; %bb.10:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_11:
Lloh18:
	adrp	x8, _SMBBA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SMBBA@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_pci_read_config_word
	ldrb	w8, [x19, #1]
Lloh21:
	adrp	x9, _SMB_ADDR_OFFSET@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SMB_ADDR_OFFSET@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	add	w0, w9, w8, lsl #8
LBB0_12:
	str	w0, [x19]
Lloh24:
	adrp	x23, _SMB_IOSIZE@GOTPAGE
Lloh25:
	ldr	x23, [x23, _SMB_IOSIZE@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh26:
	adrp	x22, _amd756_driver@GOTPAGE
Lloh27:
	ldr	x22, [x22, _amd756_driver@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_acpi_check_region
	cbnz	w0, LBB0_3
; %bb.13:
	ldr	w0, [x19]
	ldr	w1, [x23]
	ldr	w2, [x22]
	bl	_request_region
	cbz	w0, LBB0_16
; %bb.14:
Lloh28:
	adrp	x8, _SMBREV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SMBREV@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_pci_read_config_byte
	ldr	w2, [sp, #12]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	w2, [x19]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh35:
	adrp	x22, _amd756_smbus@GOTPAGE
Lloh36:
	ldr	x22, [x22, _amd756_smbus@GOTPAGEOFF]
	str	x20, [x22, #8]
Lloh37:
	adrp	x8, _chipname@GOTPAGE
Lloh38:
	ldr	x8, [x8, _chipname@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh39:
	ldr	x8, [x8]
	ldr	x9, [x21]
	ldr	x3, [x8, x9, lsl #3]
	ldr	w4, [x19]
Lloh40:
	adrp	x2, l_.str.5@PAGE
Lloh41:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	mov	x0, x22
	bl	_i2c_add_adapter
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.15:
	ldr	w0, [x19]
	ldr	w1, [x23]
	bl	_release_region
	b	LBB0_4
LBB0_16:
	ldr	w8, [x19]
	str	x8, [sp]
Lloh42:
	adrp	x1, l_.str.2@PAGE
Lloh43:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_NFORCE,8,3                     ; @NFORCE
	.comm	_amd756_ioport,4,2              ; @amd756_ioport
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Only one device supported (you have a strange motherboard, btw)\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SMBBANFORCE,4,2                ; @SMBBANFORCE
	.comm	_SMBGCFG,4,2                    ; @SMBGCFG
l_.str.1:                               ; @.str.1
	.asciz	"Error: SMBus controller I/O not enabled!\n"

	.comm	_SMBBA,4,2                      ; @SMBBA
	.comm	_SMB_ADDR_OFFSET,8,3            ; @SMB_ADDR_OFFSET
	.comm	_SMB_IOSIZE,4,2                 ; @SMB_IOSIZE
	.comm	_amd756_driver,4,2              ; @amd756_driver
l_.str.2:                               ; @.str.2
	.asciz	"SMB region 0x%x already in use!\n"

	.comm	_SMBREV,4,2                     ; @SMBREV
l_.str.3:                               ; @.str.3
	.asciz	"SMBREV = 0x%X\n"

l_.str.4:                               ; @.str.4
	.asciz	"AMD756_smba = 0x%X\n"

	.comm	_amd756_smbus,16,3              ; @amd756_smbus
l_.str.5:                               ; @.str.5
	.asciz	"SMBus %s adapter at %04x"

	.comm	_chipname,8,3                   ; @chipname
	.no_dead_strip	_amd756_probe
.subsections_via_symbols
