	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adp1653_of_init
_adp1653_of_init:                       ## @adp1653_of_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$20, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, (%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_get_child_by_name
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	movq	%r13, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	leaq	4(%r13), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:
	movslq	4(%r13), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, 4(%r13)
	leaq	8(%r13), %rbx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_6
LBB0_11:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_of_node_put
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_13:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movslq	(%rbx), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	callq	_of_node_put
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_get_child_by_name
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	%rax, %r15
	movq	%r13, %rdx
	addq	$12, %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movq	%r15, %rdi
	callq	_of_node_put
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movl	%eax, 16(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	16(%r13), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"flash"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"flash-timeout-us"

L_.str.2:                               ## @.str.2
	.asciz	"flash-max-microamp"

L_.str.3:                               ## @.str.3
	.asciz	"led-max-microamp"

L_.str.4:                               ## @.str.4
	.asciz	"indicator"

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

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.6:                               ## @.str.6
	.asciz	"Error getting GPIO\n"

L_.str.7:                               ## @.str.7
	.asciz	"Required property not found\n"

	.no_dead_strip	_adp1653_of_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adp1653_of_init
_adp1653_of_init:                       ; @adp1653_of_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #20
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	str	x0, [x21]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_of_get_child_by_name
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_of_property_read_u32
	cbnz	x0, LBB0_5
; %bb.3:
	add	x2, x20, #4
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	cbnz	x0, LBB0_5
; %bb.4:
	ldrsw	x8, [x20, #4]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x20, #4]
	add	x23, x20, #8
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_of_property_read_u32
	cbz	x0, LBB0_10
LBB0_5:
Lloh11:
	adrp	x1, l_.str.7@PAGE
Lloh12:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	bl	_of_node_put
LBB0_6:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldrsw	x8, [x23]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x23]
	mov	x0, x21
	bl	_of_node_put
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_of_get_child_by_name
	cbz	x0, LBB0_6
; %bb.11:
	mov	x21, x0
	add	x2, x20, #12
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_of_property_read_u32
	cbnz	x0, LBB0_5
; %bb.12:
	mov	x0, x21
	bl	_of_node_put
Lloh21:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	w0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.13:
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #16]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"flash"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"flash-timeout-us"

l_.str.2:                               ; @.str.2
	.asciz	"flash-max-microamp"

l_.str.3:                               ; @.str.3
	.asciz	"led-max-microamp"

l_.str.4:                               ; @.str.4
	.asciz	"indicator"

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

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.6:                               ; @.str.6
	.asciz	"Error getting GPIO\n"

l_.str.7:                               ; @.str.7
	.asciz	"Required property not found\n"

	.no_dead_strip	_adp1653_of_init
.subsections_via_symbols
