	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_soc_pmic_i2c_probe
_intel_soc_pmic_i2c_probe:              ## @intel_soc_pmic_i2c_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_ACPI_HANDLE
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rcx
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_intel_soc_pmic_config_byt_crc@GOTPCREL(%rip), %r13
	movq	-48(%rbp), %rdx
	cmpq	$129, %rdx
	je	LBB0_8
## %bb.5:
	cmpq	$128, %rdx
	jne	LBB0_7
## %bb.6:
	movq	_intel_soc_pmic_config_cht_crc@GOTPCREL(%rip), %r13
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_warn
LBB0_8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movl	16(%r13), %esi
	movq	%r12, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	8(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_12:
	movl	(%r12), %esi
	movl	%esi, 4(%r14)
	movl	8(%r14), %edi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r13), %edx
	movl	12(%r13), %r8d
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_regmap_add_irq_chip
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.13:
	movl	4(%r14), %edi
	callq	_enable_irq_wake
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_15:
	movq	_panel_gpio_table@GOTPCREL(%rip), %rdi
	callq	_gpiod_add_lookup_table
	movq	_crc_pwm_lookup@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pwm_add_table
	movl	4(%r13), %r12d
	movl	8(%r13), %r13d
	movl	(%r14), %edi
	callq	_regmap_irq_get_domain
	movl	%eax, (%rsp)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$-1, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_3
## %bb.16:
	movl	%eax, %r15d
	movl	(%r14), %esi
	movl	4(%r14), %edi
	callq	_regmap_del_irq_chip
	movl	%r15d, %ebx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_HRV"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get PMIC hardware revision\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_intel_soc_pmic_config_byt_crc,20,2 ## @intel_soc_pmic_config_byt_crc
	.comm	_intel_soc_pmic_config_cht_crc,20,2 ## @intel_soc_pmic_config_cht_crc
L_.str.2:                               ## @.str.2
	.asciz	"Unknown hardware rev %llu, assuming BYT\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"Can't enable IRQ as wake source: %d\n"

	.comm	_panel_gpio_table,4,2           ## @panel_gpio_table
	.comm	_crc_pwm_lookup,4,2             ## @crc_pwm_lookup
	.no_dead_strip	_intel_soc_pmic_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_soc_pmic_i2c_probe
_intel_soc_pmic_i2c_probe:              ; @intel_soc_pmic_i2c_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	x21, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_ACPI_HANDLE
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x2, #0
	bl	_acpi_evaluate_integer
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	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_4:
	ldr	x2, [sp, #8]
	cmp	x2, #129
	b.eq	LBB0_8
; %bb.5:
	cmp	x2, #128
	b.ne	LBB0_7
; %bb.6:
Lloh6:
	adrp	x22, _intel_soc_pmic_config_cht_crc@GOTPAGE
Lloh7:
	ldr	x22, [x22, _intel_soc_pmic_config_cht_crc@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_warn
LBB0_8:
Lloh10:
	adrp	x22, _intel_soc_pmic_config_byt_crc@GOTPAGE
Lloh11:
	ldr	x22, [x22, _intel_soc_pmic_config_byt_crc@GOTPAGEOFF]
LBB0_9:
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #12
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.10:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	ldr	w1, [x22, #16]
	mov	x0, x21
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.11:
	ldr	w0, [x20, #8]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_3
LBB0_12:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_13:
	ldr	w1, [x21]
	str	w1, [x20, #4]
	ldr	w0, [x20, #8]
	ldr	w8, [x22]
Lloh17:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w4, [x22, #12]
	mov	w3, #0
	mov	x5, x20
	bl	_regmap_add_irq_chip
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.14:
	ldr	w0, [x20, #4]
	bl	_enable_irq_wake
	cbz	w0, LBB0_16
; %bb.15:
	mov	x2, x0
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_16:
Lloh22:
	adrp	x0, _panel_gpio_table@GOTPAGE
Lloh23:
	ldr	x0, [x0, _panel_gpio_table@GOTPAGEOFF]
	bl	_gpiod_add_lookup_table
Lloh24:
	adrp	x8, _crc_pwm_lookup@GOTPAGE
Lloh25:
	ldr	x8, [x8, _crc_pwm_lookup@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x21
	bl	_pwm_add_table
	ldp	w22, w21, [x22, #4]
	ldr	w0, [x20]
	bl	_regmap_irq_get_domain
	mov	x6, x0
	mov	x0, x19
	mov	w1, #-1
	mov	x2, x21
	mov	x3, x22
	mov	x4, #0
	mov	w5, #0
	bl	_mfd_add_devices
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.17:
	ldp	w1, w0, [x20]
	bl	_regmap_del_irq_chip
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_HRV"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get PMIC hardware revision\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_intel_soc_pmic_config_byt_crc,20,2 ; @intel_soc_pmic_config_byt_crc
	.comm	_intel_soc_pmic_config_cht_crc,20,2 ; @intel_soc_pmic_config_cht_crc
l_.str.2:                               ; @.str.2
	.asciz	"Unknown hardware rev %llu, assuming BYT\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"Can't enable IRQ as wake source: %d\n"

	.comm	_panel_gpio_table,4,2           ; @panel_gpio_table
	.comm	_crc_pwm_lookup,4,2             ; @crc_pwm_lookup
	.no_dead_strip	_intel_soc_pmic_i2c_probe
.subsections_via_symbols
