	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_amd_probe
_i2c_amd_probe:                         ## @i2c_amd_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
	callq	_ACPI_HANDLE
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_acpi_bus_get_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_amd_mp2_find_device
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %r14
	cmpl	$0, 8(%rax)
	je	LBB0_10
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$128, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	%rax, %r15
	movq	%r14, 112(%rax)
	movq	%r12, 120(%rax)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	_i2c_amd_cmd_completion@GOTPCREL(%rip), %rax
	movq	%rax, 104(%r15)
	movq	-48(%rbp), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_14
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_10:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_14:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_16:
	xorl	%edx, %edx
	jmp	LBB0_18
LBB0_17:
	movl	$1, %edx
LBB0_18:
	leaq	72(%r15), %rbx
	movl	%edx, 72(%r15)
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	%r14, %rdi
	callq	_amd_mp2_pm_runtime_get
	movq	_i2c_none@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r15)
	movq	%rbx, %rdi
	callq	_amd_mp2_register_cb
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_20:
	movq	120(%r15), %rdi
	movq	(%r14), %rsi
	movq	_DL_FLAG_AUTOREMOVE_CONSUMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_device_link_add
	movq	%r12, %rdi
	callq	_i2c_amd_get_bus_speed
	movl	%eax, 76(%r15)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	movq	_i2c_amd_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r15)
	movq	_amd_i2c_dev_quirks@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r15)
	leaq	8(%r15), %rbx
	movq	%r12, 16(%r15)
	movq	%r15, 32(%r15)
	movq	_AMD_I2C_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r12, %rdi
	callq	_ACPI_COMPANION
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ACPI_COMPANION_SET
	movl	(%r12), %eax
	movl	%eax, 8(%r15)
	movl	(%r15), %edi
	movl	72(%r15), %ecx
	leaq	L_.str.5(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_adapdata
	movq	%r15, %rdi
	addq	$64, %rdi
	callq	_init_completion
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_i2c_amd_enable_set
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_22:
	movq	%r15, %rdi
	callq	_i2c_add_adapter
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_amd_mp2_pm_runtime_put
	testl	%ebx, %ebx
	jns	LBB0_12
## %bb.23:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_i2c_amd_cmd_completion,4,2     ## @i2c_amd_cmd_completion
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing UID/bus id!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"0"

L_.str.2:                               ## @.str.2
	.asciz	"1"

L_.str.3:                               ## @.str.3
	.asciz	"incorrect UID/bus id \"%s\"!\n"

L_.str.4:                               ## @.str.4
	.asciz	"bus id is %u\n"

	.comm	_i2c_none,4,2                   ## @i2c_none
	.comm	_DL_FLAG_AUTOREMOVE_CONSUMER,4,2 ## @DL_FLAG_AUTOREMOVE_CONSUMER
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_i2c_amd_algorithm,4,2          ## @i2c_amd_algorithm
	.comm	_amd_i2c_dev_quirks,4,2         ## @amd_i2c_dev_quirks
	.comm	_AMD_I2C_TIMEOUT,4,2            ## @AMD_I2C_TIMEOUT
L_.str.5:                               ## @.str.5
	.asciz	"AMD MP2 i2c bus %u"

L_.str.6:                               ## @.str.6
	.asciz	"initial bus enable failed\n"

L_.str.7:                               ## @.str.7
	.asciz	"i2c add adapter failed = %d\n"

	.comm	_i2c_amd_resume,4,2             ## @i2c_amd_resume
	.comm	_i2c_amd_suspend,4,2            ## @i2c_amd_suspend
	.no_dead_strip	_i2c_amd_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_amd_probe
_i2c_amd_probe:                         ; @i2c_amd_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_ACPI_HANDLE
	add	x1, sp, #8
	bl	_acpi_bus_get_device
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_17
LBB0_2:
	bl	_amd_mp2_find_device
	cbz	x0, LBB0_9
; %bb.3:
	mov	x20, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_9
; %bb.4:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #128
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x21, x0
	stp	x20, x19, [x0, #112]
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
Lloh5:
	adrp	x8, _i2c_amd_cmd_completion@GOTPAGE
Lloh6:
	ldr	x8, [x8, _i2c_amd_cmd_completion@GOTPAGEOFF]
	str	x8, [x21, #104]
	ldr	x8, [sp, #8]
	ldr	x22, [x8]
	cbz	x22, LBB0_11
; %bb.6:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.7:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.8:
	str	x22, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh13:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_11:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_16
LBB0_13:
	mov	w2, #0
	b	LBB0_15
LBB0_14:
	mov	w2, #1
LBB0_15:
	add	x22, x21, #72
	str	w2, [x21, #72]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x20
	bl	_amd_mp2_pm_runtime_get
Lloh21:
	adrp	x8, _i2c_none@GOTPAGE
Lloh22:
	ldr	x8, [x8, _i2c_none@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x21, #80]
	mov	x0, x22
	bl	_amd_mp2_register_cb
	cbz	x0, LBB0_19
LBB0_16:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_18:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_19:
	ldr	x0, [x21, #120]
	ldr	x1, [x20]
Lloh26:
	adrp	x8, _DL_FLAG_AUTOREMOVE_CONSUMER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DL_FLAG_AUTOREMOVE_CONSUMER@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	bl	_device_link_add
	mov	x0, x19
	bl	_i2c_amd_get_bus_speed
	str	w0, [x21, #76]
Lloh29:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _i2c_amd_algorithm@GOTPAGE
Lloh33:
	ldr	x9, [x9, _i2c_amd_algorithm@GOTPAGEOFF]
	str	w8, [x21, #56]
	str	x9, [x21, #48]
Lloh34:
	adrp	x8, _amd_i2c_dev_quirks@GOTPAGE
Lloh35:
	ldr	x8, [x8, _amd_i2c_dev_quirks@GOTPAGEOFF]
	add	x22, x21, #8
	str	x19, [x21, #16]
	stp	x21, x8, [x21, #32]
Lloh36:
	adrp	x8, _AMD_I2C_TIMEOUT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AMD_I2C_TIMEOUT@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	mov	x0, x19
	bl	_ACPI_COMPANION
	mov	x1, x0
	mov	x0, x22
	bl	_ACPI_COMPANION_SET
	ldr	w8, [x19]
	str	w8, [x21, #8]
	ldr	w0, [x21]
	ldr	w3, [x21, #72]
Lloh39:
	adrp	x2, l_.str.5@PAGE
Lloh40:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	mov	x0, x21
	mov	x1, x21
	bl	_i2c_set_adapdata
	add	x0, x21, #64
	bl	_init_completion
	mov	x0, x21
	mov	w1, #1
	bl	_i2c_amd_enable_set
	cbz	x0, LBB0_21
; %bb.20:
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_21:
	mov	x0, x21
	bl	_i2c_add_adapter
	mov	x21, x0
	mov	x0, x20
	bl	_amd_mp2_pm_runtime_put
	tbz	w21, #31, LBB0_18
; %bb.22:
	str	x21, [sp]
Lloh43:
	adrp	x1, l_.str.7@PAGE
Lloh44:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_i2c_amd_cmd_completion,4,2     ; @i2c_amd_cmd_completion
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing UID/bus id!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"0"

l_.str.2:                               ; @.str.2
	.asciz	"1"

l_.str.3:                               ; @.str.3
	.asciz	"incorrect UID/bus id \"%s\"!\n"

l_.str.4:                               ; @.str.4
	.asciz	"bus id is %u\n"

	.comm	_i2c_none,4,2                   ; @i2c_none
	.comm	_DL_FLAG_AUTOREMOVE_CONSUMER,4,2 ; @DL_FLAG_AUTOREMOVE_CONSUMER
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_i2c_amd_algorithm,4,2          ; @i2c_amd_algorithm
	.comm	_amd_i2c_dev_quirks,4,2         ; @amd_i2c_dev_quirks
	.comm	_AMD_I2C_TIMEOUT,4,2            ; @AMD_I2C_TIMEOUT
l_.str.5:                               ; @.str.5
	.asciz	"AMD MP2 i2c bus %u"

l_.str.6:                               ; @.str.6
	.asciz	"initial bus enable failed\n"

l_.str.7:                               ; @.str.7
	.asciz	"i2c add adapter failed = %d\n"

	.comm	_i2c_amd_resume,4,2             ; @i2c_amd_resume
	.comm	_i2c_amd_suspend,4,2            ; @i2c_amd_suspend
	.no_dead_strip	_i2c_amd_probe
.subsections_via_symbols
