	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd8111_probe
_amd8111_probe:                         ## @amd8111_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_pci_resource_flags
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 48(%rax)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movl	%eax, (%r15)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_len
	movl	%eax, 4(%r15)
	movq	8(%r14), %rdi
	callq	_acpi_check_resource_conflict
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_4:
	subl	(%rax), %ebx
LBB0_5:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r15), %edi
	movl	4(%r15), %esi
	movq	_amd8111_driver@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, %r12
	addq	$8, %r12
	movl	%eax, 44(%r15)
	movl	(%r15), %ecx
	movl	40(%r15), %edi
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movq	_I2C_CLASS_SPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%r15)
	movq	_smbus_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movq	%r15, 24(%r15)
	movq	%r14, 16(%r15)
	movq	48(%r15), %rdi
	movq	_AMD_PCI_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_pci_write_config_dword
	movq	%r12, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movl	%eax, %r12d
	movl	(%r15), %edi
	movl	4(%r15), %esi
	callq	_release_region
	movl	%r12d, %ebx
	jmp	LBB0_5
LBB0_13:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_amd8111_driver,4,2             ## @amd8111_driver
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMBus2 AMD8111 adapter at %04x"

	.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
	.comm	_AMD_PCI_MISC,4,2               ## @AMD_PCI_MISC
	.no_dead_strip	_amd8111_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd8111_probe
_amd8111_probe:                         ; @amd8111_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	mov	w1, #0
	bl	_pci_resource_flags
Lloh0:
	adrp	x8, _IORESOURCE_IO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_IO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
	str	x20, [x0, #48]
	mov	x0, x20
	mov	w1, #0
	bl	_pci_resource_start
	str	w0, [x19]
	mov	x0, x20
	mov	w1, #0
	bl	_pci_resource_len
	str	w0, [x19, #4]
	ldr	x0, [x20, #8]
	bl	_acpi_check_resource_conflict
	cbz	w0, LBB0_10
; %bb.3:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x19
	bl	_kfree
	b	LBB0_9
LBB0_6:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldp	w0, w1, [x19]
Lloh12:
	adrp	x8, _amd8111_driver@GOTPAGE
Lloh13:
	ldr	x8, [x8, _amd8111_driver@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_request_region
	cbz	w0, LBB0_13
; %bb.11:
Lloh15:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	ldr	w0, [x19, #40]
	ldr	w3, [x19]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh20:
	adrp	x8, _I2C_CLASS_HWMON@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I2C_CLASS_HWMON@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _I2C_CLASS_SPD@GOTPAGE
Lloh24:
	ldr	x9, [x9, _I2C_CLASS_SPD@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x21, x19
	str	w8, [x21, #8]!
Lloh26:
	adrp	x8, _smbus_algorithm@GOTPAGE
Lloh27:
	ldr	x8, [x8, _smbus_algorithm@GOTPAGEOFF]
	stp	x19, x8, [x19, #24]
	str	x20, [x19, #16]
	ldr	x0, [x19, #48]
Lloh28:
	adrp	x8, _AMD_PCI_MISC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AMD_PCI_MISC@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_pci_write_config_dword
	mov	x0, x21
	bl	_i2c_add_adapter
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.12:
	ldp	w0, w1, [x19]
	bl	_release_region
	b	LBB0_5
LBB0_13:
Lloh31:
	adrp	x8, _EBUSY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_pci_set_drvdata
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_amd8111_driver,4,2             ; @amd8111_driver
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMBus2 AMD8111 adapter at %04x"

	.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
	.comm	_AMD_PCI_MISC,4,2               ; @AMD_PCI_MISC
	.no_dead_strip	_amd8111_probe
.subsections_via_symbols
