	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cht_int33fe_register_max17047
_cht_int33fe_register_max17047:         ## @cht_int33fe_register_max17047
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	_nodes@GOTPCREL(%rip), %rax
	movq	_INT33FE_NODE_MAX17047@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	callq	_software_node_fwnode
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_cht_int33fe_check_for_max17047@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_i2c_for_each_dev
	cmpq	$0, -48(%rbp)
	je	LBB0_5
## %bb.3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movl	%eax, (%r12)
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	movq	%r12, (%rax)
	movq	-48(%rbp), %rdi
	callq	_device_reprobe
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_6
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	leaq	-72(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	-56(%rbp), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %rsi
	callq	_strlcpy
	movq	%rbx, -72(%rbp)
	movq	%r12, -64(%rbp)
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	callq	_i2c_acpi_new_device
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_PTR_ERR_OR_ZERO
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nodes,8,3                      ## @nodes
	.comm	_INT33FE_NODE_MAX17047,8,3      ## @INT33FE_NODE_MAX17047
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_cht_int33fe_check_for_max17047,4,2 ## @cht_int33fe_check_for_max17047
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reprobing max17047 error: %d\n"

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

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.no_dead_strip	_cht_int33fe_register_max17047
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cht_int33fe_register_max17047
_cht_int33fe_register_max17047:         ; @cht_int33fe_register_max17047
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _nodes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nodes@GOTPAGEOFF]
	str	xzr, [sp, #24]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _INT33FE_NODE_MAX17047@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INT33FE_NODE_MAX17047@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_software_node_fwnode
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh6:
	adrp	x8, _cht_int33fe_check_for_max17047@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cht_int33fe_check_for_max17047@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #24
	bl	_i2c_for_each_dev
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_5
; %bb.2:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	str	w0, [x21]
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	str	x21, [x8]
	ldr	x0, [sp, #24]
	bl	_device_reprobe
	cbz	w0, LBB0_6
; %bb.3:
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [sp, #16]
Lloh17:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x22, l_.str.1@PAGE
Lloh21:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_strlcpy
	stp	x22, x21, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	w1, #1
	bl	_i2c_acpi_new_device
	str	w0, [x20]
	bl	_PTR_ERR_OR_ZERO
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_nodes,8,3                      ; @nodes
	.comm	_INT33FE_NODE_MAX17047,8,3      ; @INT33FE_NODE_MAX17047
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_cht_int33fe_check_for_max17047,4,2 ; @cht_int33fe_check_for_max17047
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reprobing max17047 error: %d\n"

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

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.no_dead_strip	_cht_int33fe_register_max17047
.subsections_via_symbols
