	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cht_wc_probe
_cht_wc_probe:                          ## @cht_wc_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	8(%rdi), %r14
	movq	%r14, %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_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_2:
	movq	-48(%rbp), %rdx
	movq	_CHT_WC_HRV@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_8
## %bb.3:
	cmpq	$0, (%r12)
	js	LBB0_12
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, %r15
	movq	(%r12), %rax
	movq	%rax, (%r15)
	movq	%r14, 16(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	_cht_wc_regmap_cfg@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_devm_regmap_init
	movl	%eax, 12(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	12(%r15), %esi
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movl	%esi, %edi
	callq	_PTR_ERR
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_14:
	movq	(%r15), %rdx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	addq	$8, %r15
	movq	%r15, (%rsp)
	movq	_cht_wc_regmap_irq_chip@GOTPCREL(%rip), %r9
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	callq	_devm_regmap_add_irq_chip
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.15:
	movq	_PLATFORM_DEVID_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_cht_wc_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%eax, %r13d
	movl	(%r15), %edi
	callq	_regmap_irq_get_domain
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	jmp	LBB0_7
	.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	_CHT_WC_HRV,8,3                 ## @CHT_WC_HRV
L_.str.2:                               ## @.str.2
	.asciz	"Invalid PMIC hardware revision: %llu\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid IRQ\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cht_wc_regmap_cfg,4,2          ## @cht_wc_regmap_cfg
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_cht_wc_regmap_irq_chip,4,2     ## @cht_wc_regmap_irq_chip
	.comm	_PLATFORM_DEVID_NONE,4,2        ## @PLATFORM_DEVID_NONE
	.comm	_cht_wc_dev,4,2                 ## @cht_wc_dev
	.no_dead_strip	_cht_wc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cht_wc_probe
_cht_wc_probe:                          ; @cht_wc_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	x21, x0
	add	x19, x0, #8
	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_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_2:
	ldr	x8, [sp, #8]
Lloh4:
	adrp	x9, _CHT_WC_HRV@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CHT_WC_HRV@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x21]
	tbnz	x8, #63, LBB0_11
; %bb.4:
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.5:
	mov	x20, x0
	ldr	x8, [x21]
	str	x8, [x0]
	str	x19, [x0, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_clientdata
Lloh10:
	adrp	x3, _cht_wc_regmap_cfg@GOTPAGE
Lloh11:
	ldr	x3, [x3, _cht_wc_regmap_cfg@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x21
	bl	_devm_regmap_init
	str	w0, [x20, #12]
	bl	_IS_ERR
	ldr	w1, [x20, #12]
	cbz	x0, LBB0_13
; %bb.6:
	mov	x0, x1
	bl	_PTR_ERR
	b	LBB0_10
LBB0_7:
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_dev_err
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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_11:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_13:
	ldr	x2, [x20], #8
Lloh22:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh28:
	adrp	x5, _cht_wc_regmap_irq_chip@GOTPAGE
Lloh29:
	ldr	x5, [x5, _cht_wc_regmap_irq_chip@GOTPAGEOFF]
	mov	x0, x19
	mov	w4, #0
	mov	x6, x20
	bl	_devm_regmap_add_irq_chip
	cbnz	w0, LBB0_10
; %bb.14:
Lloh30:
	adrp	x8, _PLATFORM_DEVID_NONE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PLATFORM_DEVID_NONE@GOTPAGEOFF]
Lloh32:
	ldr	w21, [x8]
Lloh33:
	adrp	x8, _cht_wc_dev@GOTPAGE
Lloh34:
	ldr	x8, [x8, _cht_wc_dev@GOTPAGEOFF]
Lloh35:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x23, x0
	ldr	w0, [x20]
	bl	_regmap_irq_get_domain
	mov	x6, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, #0
	mov	w5, #0
	bl	_devm_mfd_add_devices
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.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	_CHT_WC_HRV,8,3                 ; @CHT_WC_HRV
l_.str.2:                               ; @.str.2
	.asciz	"Invalid PMIC hardware revision: %llu\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid IRQ\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cht_wc_regmap_cfg,4,2          ; @cht_wc_regmap_cfg
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_cht_wc_regmap_irq_chip,4,2     ; @cht_wc_regmap_irq_chip
	.comm	_PLATFORM_DEVID_NONE,4,2        ; @PLATFORM_DEVID_NONE
	.comm	_cht_wc_dev,4,2                 ; @cht_wc_dev
	.no_dead_strip	_cht_wc_probe
.subsections_via_symbols
