	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq24190_register_reset
_bq24190_register_reset:                ## @bq24190_register_reset
	.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	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_device_property_read_bool
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_BQ24190_REG_POC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BQ24190_REG_POC_RESET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BQ24190_REG_POC_RESET_SHIFT@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movl	$1, %r8d
	callq	_bq24190_write_mask
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movl	$-100, %r13d
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_BQ24190_REG_POC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BQ24190_REG_POC_RESET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movq	%r15, %r8
	callq	_bq24190_read_mask
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -48(%rbp)
	je	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	incl	%r13d
	jne	LBB0_4
## %bb.7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_1
LBB0_9:
	movl	%eax, %r14d
LBB0_1:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disable-reset"

	.comm	_BQ24190_REG_POC,4,2            ## @BQ24190_REG_POC
	.comm	_BQ24190_REG_POC_RESET_MASK,4,2 ## @BQ24190_REG_POC_RESET_MASK
	.comm	_BQ24190_REG_POC_RESET_SHIFT,4,2 ## @BQ24190_REG_POC_RESET_SHIFT
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_bq24190_register_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq24190_register_reset
_bq24190_register_reset:                ; @bq24190_register_reset
	.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
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_property_read_bool
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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_3:
Lloh2:
	adrp	x20, _BQ24190_REG_POC@GOTPAGE
Lloh3:
	ldr	x20, [x20, _BQ24190_REG_POC@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	adrp	x21, _BQ24190_REG_POC_RESET_MASK@GOTPAGE
Lloh5:
	ldr	x21, [x21, _BQ24190_REG_POC_RESET_MASK@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh6:
	adrp	x22, _BQ24190_REG_POC_RESET_SHIFT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _BQ24190_REG_POC_RESET_SHIFT@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w4, #1
	bl	_bq24190_write_mask
	tbnz	w0, #31, LBB0_2
; %bb.4:
	mov	w23, #-100
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	ldr	w2, [x21]
	ldr	w3, [x22]
	add	x4, sp, #8
	mov	x0, x19
	bl	_bq24190_read_mask
	tbnz	w0, #31, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	adds	w23, w23, #1
	b.lo	LBB0_5
; %bb.8:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disable-reset"

	.comm	_BQ24190_REG_POC,4,2            ; @BQ24190_REG_POC
	.comm	_BQ24190_REG_POC_RESET_MASK,4,2 ; @BQ24190_REG_POC_RESET_MASK
	.comm	_BQ24190_REG_POC_RESET_SHIFT,4,2 ; @BQ24190_REG_POC_RESET_SHIFT
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_bq24190_register_reset
.subsections_via_symbols
