	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq27xxx_battery_overtemp
_bq27xxx_battery_overtemp:              ## @bq27xxx_battery_overtemp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	_BQ27XXX_O_OTDC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_BQ27XXX_FLAG_OTC@GOTPCREL(%rip), %rcx
	movq	_BQ27XXX_FLAG_OTD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	andl	%esi, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_BQ27XXX_O_UTOT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	movq	_BQ27XXX_FLAG_OT@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movl	%esi, %eax
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BQ27XXX_O_OTDC,4,2             ## @BQ27XXX_O_OTDC
	.comm	_BQ27XXX_FLAG_OTC,4,2           ## @BQ27XXX_FLAG_OTC
	.comm	_BQ27XXX_FLAG_OTD,4,2           ## @BQ27XXX_FLAG_OTD
	.comm	_BQ27XXX_O_UTOT,4,2             ## @BQ27XXX_O_UTOT
	.comm	_BQ27XXX_FLAG_OT,4,2            ## @BQ27XXX_FLAG_OT
	.no_dead_strip	_bq27xxx_battery_overtemp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq27xxx_battery_overtemp
_bq27xxx_battery_overtemp:              ; @bq27xxx_battery_overtemp
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BQ27XXX_O_OTDC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BQ27XXX_O_OTDC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _BQ27XXX_FLAG_OTC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BQ27XXX_FLAG_OTC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _BQ27XXX_FLAG_OTD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BQ27XXX_FLAG_OTD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w0, w8, w1
	ret
LBB0_2:
Lloh9:
	adrp	x9, _BQ27XXX_O_UTOT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BQ27XXX_O_UTOT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _BQ27XXX_FLAG_OT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BQ27XXX_FLAG_OT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w0, w8, w1
	ret
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BQ27XXX_O_OTDC,4,2             ; @BQ27XXX_O_OTDC
	.comm	_BQ27XXX_FLAG_OTC,4,2           ; @BQ27XXX_FLAG_OTC
	.comm	_BQ27XXX_FLAG_OTD,4,2           ; @BQ27XXX_FLAG_OTD
	.comm	_BQ27XXX_O_UTOT,4,2             ; @BQ27XXX_O_UTOT
	.comm	_BQ27XXX_FLAG_OT,4,2            ; @BQ27XXX_FLAG_OT
	.no_dead_strip	_bq27xxx_battery_overtemp
.subsections_via_symbols
