	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm80x_init                     ## -- Begin function pm80x_init
	.p2align	4, 0x90
_pm80x_init:                            ## @pm80x_init
	.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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r15
	movq	_pm80x_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
LBB0_12:
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, (%r15)
	movq	%rbx, 32(%r15)
	movl	4(%r14), %eax
	movl	%eax, 40(%r15)
	movq	%r14, 16(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	movq	(%r15), %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	32(%r15), %rdi
	movq	_PM80X_CHIP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	movq	_chip_mapping@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx), %r14
	movl	-44(%rbp), %edi
	callq	_PM80X_CHIP_ID_NUM
	cmpq	%rax, %r14
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_9
	jmp	LBB0_15
LBB0_11:
	movl	%eax, %ebx
	movq	16(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_13:
	xorl	%r13d, %r13d
	jmp	LBB0_16
LBB0_14:
	movq	(%r12), %rax
	movl	8(%rax,%rbx), %eax
	movl	%eax, 24(%r15)
LBB0_15:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_16:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jne	LBB0_18
## %bb.17:
	movq	16(%r15), %rdi
	movl	-44(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_18:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	movq	_g_pm80x_chip@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	(%rax), %rcx
	movq	%rcx, 8(%r15)
	movq	(%r15), %rcx
	movq	%rcx, 8(%rax)
	jmp	LBB0_21
LBB0_20:
	movq	%r15, (%rcx)
LBB0_21:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pm80x_regmap_config,4,2        ## @pm80x_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_PM80X_CHIP_ID,4,2              ## @PM80X_CHIP_ID
L_.str.1:                               ## @.str.1
	.asciz	"Failed to read CHIP ID: %d\n"

	.comm	_chip_mapping,8,3               ## @chip_mapping
L_.str.2:                               ## @.str.2
	.asciz	"Failed to detect Marvell 88PM800:ChipID[0x%x]\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_g_pm80x_chip,8,3               ## @g_pm80x_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm80x_init                     ; -- Begin function pm80x_init
	.p2align	2
_pm80x_init:                            ; @pm80x_init
	.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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x1, _pm80x_regmap_config@GOTPAGE
Lloh4:
	ldr	x1, [x1, _pm80x_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
LBB0_3:
	mov	x2, x21
	bl	_dev_err
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	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_7:
	str	x19, [x20]
	str	x21, [x20, #32]
	ldr	w8, [x19, #4]
	str	w8, [x20, #40]
	str	x19, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	ldr	x0, [x20]
	mov	x1, x20
	bl	_i2c_set_clientdata
	ldr	x0, [x20, #32]
Lloh9:
	adrp	x8, _PM80X_CHIP_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PM80X_CHIP_ID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_12
; %bb.8:
Lloh12:
	adrp	x21, _chip_mapping@GOTPAGE
Lloh13:
	ldr	x21, [x21, _chip_mapping@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x23, #0
	mov	x22, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x24, [x8, x23]
	ldr	w0, [sp, #12]
	bl	_PM80X_CHIP_ID_NUM
	cmp	x24, x0
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	add	x23, x23, #16
	cmp	x22, w0, sxtw
	b.lt	LBB0_10
	b	LBB0_15
LBB0_12:
	mov	x21, x0
	ldr	x0, [x20, #16]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_13:
	mov	w22, #0
	b	LBB0_15
LBB0_14:
	ldr	x8, [x21]
	add	x8, x8, x23
	ldr	w8, [x8, #8]
	str	w8, [x20, #24]
LBB0_15:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.ne	LBB0_17
; %bb.16:
	ldr	x0, [x20, #16]
	ldr	w2, [sp, #12]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_17:
	mov	x0, x19
	mov	w1, #1
	bl	_device_init_wakeup
Lloh20:
	adrp	x9, _g_pm80x_chip@GOTPAGE
Lloh21:
	ldr	x9, [x9, _g_pm80x_chip@GOTPAGEOFF]
	ldr	x8, [x9]
	cbz	x8, LBB0_19
; %bb.18:
	mov	w21, #0
	ldr	x9, [x8]
	str	x9, [x20, #8]
	ldr	x9, [x20]
	str	x9, [x8, #8]
	b	LBB0_6
LBB0_19:
	mov	w21, #0
	str	x20, [x9]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pm80x_regmap_config,4,2        ; @pm80x_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_PM80X_CHIP_ID,4,2              ; @PM80X_CHIP_ID
l_.str.1:                               ; @.str.1
	.asciz	"Failed to read CHIP ID: %d\n"

	.comm	_chip_mapping,8,3               ; @chip_mapping
l_.str.2:                               ; @.str.2
	.asciz	"Failed to detect Marvell 88PM800:ChipID[0x%x]\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_g_pm80x_chip,8,3               ; @g_pm80x_chip
.subsections_via_symbols
