	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cht_int33fe_probe
_cht_int33fe_probe:                     ## @cht_int33fe_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_ACPI_HANDLE
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-72(%rbp), %rcx
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	-72(%rbp), %rax
	movq	_EXPECTED_PTYPE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edx
	callq	_acpi_dev_present
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_regulator_get_optional
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	callq	_PTR_ERR
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	subl	(%rdx), %ebx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	cmovnel	%eax, %ebx
	jmp	LBB0_10
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	(%rbx), %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_2
LBB0_12:
	callq	_regulator_put
	movq	%r15, %rdi
	callq	_ACPI_COMPANION
	movl	%eax, %edi
	movl	$1, %esi
	callq	_acpi_dev_gpio_irq_get
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_19
## %bb.13:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_cht_int33fe_add_nodes
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.15:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_cht_int33fe_register_max17047
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_30
## %bb.16:
	movq	_nodes@GOTPCREL(%rip), %rcx
	movq	_INT33FE_NODE_FUSB302@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%rcx), %rdi
	callq	_software_node_fwnode
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	movq	%rax, %rbx
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	-52(%rbp), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.7(%rip), %rsi
	callq	_strlcpy
	leaq	L_.str.8(%rip), %rax
	movq	%rax, -64(%rbp)
	movq	%rbx, -48(%rbp)
	movl	%r12d, -56(%rbp)
	movq	%r15, %rdi
	movl	$2, %esi
	movq	%r13, %rdx
	callq	_i2c_acpi_new_device
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_24
## %bb.18:
	movq	8(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_29
LBB0_19:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	jne	LBB0_22
## %bb.20:
	movl	%r12d, %ebx
	jmp	LBB0_10
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_22:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_10
LBB0_23:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_29
LBB0_24:
	movq	_INT33FE_NODE_PI3USB30532@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	movq	_nodes@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_software_node_fwnode
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	movq	%rax, %r12
	leaq	-64(%rbp), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	leaq	L_.str.9(%rip), %rsi
	movq	%rsi, -64(%rbp)
	movq	%r12, -48(%rbp)
	movl	-52(%rbp), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	movq	%r15, %rdi
	movl	$3, %esi
	movq	%r13, %rdx
	callq	_i2c_acpi_new_device
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_31
## %bb.26:
	movq	16(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_27:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_28:
	movq	8(%r14), %rdi
	callq	_i2c_unregister_device
LBB0_29:
	movq	(%r14), %rdi
	callq	_i2c_unregister_device
LBB0_30:
	movq	%r14, %rdi
	callq	_cht_int33fe_remove_nodes
	jmp	LBB0_10
LBB0_31:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PTYP"

L_.str.1:                               ## @.str.1
	.asciz	"Error getting PTYPE\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EXPECTED_PTYPE,8,3             ## @EXPECTED_PTYPE
L_.str.2:                               ## @.str.2
	.asciz	"INT34D3"

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

L_.str.4:                               ## @.str.4
	.asciz	"Error PTYPE == %d, but no INT34D3 device\n"

L_.str.5:                               ## @.str.5
	.asciz	"cht_wc_usb_typec_vbus"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.6:                               ## @.str.6
	.asciz	"Error getting FUSB302 irq\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nodes,8,3                      ## @nodes
	.comm	_INT33FE_NODE_FUSB302,8,3       ## @INT33FE_NODE_FUSB302
L_.str.7:                               ## @.str.7
	.asciz	"typec_fusb302"

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
L_.str.8:                               ## @.str.8
	.asciz	"fusb302"

	.comm	_INT33FE_NODE_PI3USB30532,8,3   ## @INT33FE_NODE_PI3USB30532
L_.str.9:                               ## @.str.9
	.asciz	"pi3usb30532"

	.no_dead_strip	_cht_int33fe_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cht_int33fe_probe
_cht_int33fe_probe:                     ; @cht_int33fe_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	bl	_ACPI_HANDLE
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #16
	mov	x2, #0
	bl	_acpi_evaluate_integer
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_3:
	ldr	x8, [sp, #16]
Lloh4:
	adrp	x20, _EXPECTED_PTYPE@GOTPAGE
Lloh5:
	ldr	x20, [x20, _EXPECTED_PTYPE@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #3
	bl	_acpi_dev_present
	cbz	w0, LBB0_10
; %bb.5:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_regulator_get_optional
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.6:
	mov	x0, x20
	bl	_PTR_ERR
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _EPROBE_DEFER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EPROBE_DEFER@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmn	w0, w8
	csneg	w22, w0, w9, ne
	b	LBB0_9
LBB0_7:
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	ldr	x8, [x20]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_11:
	mov	x0, x20
	bl	_regulator_put
	mov	x0, x19
	bl	_ACPI_COMPANION
	mov	w1, #1
	bl	_acpi_dev_gpio_irq_get
	mov	x21, x0
	tbnz	w0, #31, LBB0_18
; %bb.12:
Lloh22:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_20
; %bb.13:
	mov	x20, x0
	bl	_cht_int33fe_add_nodes
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	bl	_cht_int33fe_register_max17047
	mov	x22, x0
	cbnz	w0, LBB0_29
; %bb.15:
Lloh25:
	adrp	x24, _nodes@GOTPAGE
Lloh26:
	ldr	x24, [x24, _nodes@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh27:
	adrp	x9, _INT33FE_NODE_FUSB302@GOTPAGE
Lloh28:
	ldr	x9, [x9, _INT33FE_NODE_FUSB302@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_software_node_fwnode
	cbz	x0, LBB0_22
; %bb.16:
	mov	x22, x0
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [sp, #36]
Lloh30:
	adrp	x23, _I2C_NAME_SIZE@GOTPAGE
Lloh31:
	ldr	x23, [x23, _I2C_NAME_SIZE@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strlcpy
Lloh34:
	adrp	x8, l_.str.8@PAGE
Lloh35:
	add	x8, x8, l_.str.8@PAGEOFF
	str	x8, [sp, #24]
	str	x22, [sp, #40]
	str	w21, [sp, #32]
	add	x2, sp, #24
	mov	x0, x19
	mov	w1, #2
	bl	_i2c_acpi_new_device
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.17:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_28
LBB0_18:
Lloh36:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmn	w21, w8
	b.ne	LBB0_21
; %bb.19:
	mov	x22, x21
	b	LBB0_9
LBB0_20:
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_21:
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x22, x21
	b	LBB0_9
LBB0_22:
Lloh43:
	adrp	x8, _ENODEV@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_28
LBB0_23:
	ldr	x8, [x24]
Lloh46:
	adrp	x9, _INT33FE_NODE_PI3USB30532@GOTPAGE
Lloh47:
	ldr	x9, [x9, _INT33FE_NODE_PI3USB30532@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_software_node_fwnode
	cbz	x0, LBB0_26
; %bb.24:
	mov	x21, x0
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh49:
	adrp	x1, l_.str.9@PAGE
Lloh50:
	add	x1, x1, l_.str.9@PAGEOFF
	str	x1, [sp, #24]
	str	x21, [sp, #40]
	ldr	w0, [sp, #36]
	ldr	w2, [x23]
	bl	_strlcpy
	add	x2, sp, #24
	mov	x0, x19
	mov	w1, #3
	bl	_i2c_acpi_new_device
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_30
; %bb.25:
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_27
LBB0_26:
Lloh51:
	adrp	x8, _ENODEV@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_27:
	ldr	x0, [x20, #8]
	bl	_i2c_unregister_device
LBB0_28:
	ldr	x0, [x20]
	bl	_i2c_unregister_device
LBB0_29:
	mov	x0, x20
	bl	_cht_int33fe_remove_nodes
	b	LBB0_9
LBB0_30:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w22, #0
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PTYP"

l_.str.1:                               ; @.str.1
	.asciz	"Error getting PTYPE\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EXPECTED_PTYPE,8,3             ; @EXPECTED_PTYPE
l_.str.2:                               ; @.str.2
	.asciz	"INT34D3"

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

l_.str.4:                               ; @.str.4
	.asciz	"Error PTYPE == %d, but no INT34D3 device\n"

l_.str.5:                               ; @.str.5
	.asciz	"cht_wc_usb_typec_vbus"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.6:                               ; @.str.6
	.asciz	"Error getting FUSB302 irq\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nodes,8,3                      ; @nodes
	.comm	_INT33FE_NODE_FUSB302,8,3       ; @INT33FE_NODE_FUSB302
l_.str.7:                               ; @.str.7
	.asciz	"typec_fusb302"

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
l_.str.8:                               ; @.str.8
	.asciz	"fusb302"

	.comm	_INT33FE_NODE_PI3USB30532,8,3   ; @INT33FE_NODE_PI3USB30532
l_.str.9:                               ; @.str.9
	.asciz	"pi3usb30532"

	.no_dead_strip	_cht_int33fe_probe
.subsections_via_symbols
