	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps65010_interrupt
_tps65010_interrupt:                    ## @tps65010_interrupt
	.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, %r14
	movb	$1, %r15b
	cmpl	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	movl	44(%r14), %edi
	movq	_TPS_REGSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	4(%r14), %ecx
	xorl	%eax, %ecx
	movl	%eax, 4(%r14)
	testl	%ecx, (%r14)
	je	LBB0_4
## %bb.2:
	movq	_TPS_REG_ONOFF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pr_info
LBB0_4:
	cmpl	$0, 8(%r14)
	je	LBB0_20
## %bb.5:
	movl	44(%r14), %edi
	movq	_TPS_CHGSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	12(%r14), %r12d
	xorl	%eax, %r12d
	movl	%eax, 12(%r14)
	andl	8(%r14), %r12d
	je	LBB0_20
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_show_chgstatus
	movq	_TPS_CHG_USB@GOTPCREL(%rip), %r9
	movl	(%r9), %ecx
	movq	_TPS_CHG_AC@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	%edx, %esi
	orl	%ecx, %esi
	testl	%ebx, %esi
	je	LBB0_8
## %bb.7:
	movl	16(%r14), %edx
	movl	40(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r9, %rbx
	callq	_show_chgconfig
	movq	%rbx, %r9
	movl	(%rbx), %ecx
	movl	(%r13), %edx
	movl	%edx, %esi
	orl	%ecx, %esi
LBB0_8:
	movl	12(%r14), %edi
	movl	%esi, %eax
	notl	%eax
	xorl	%ebx, %ebx
	movb	$1, %r8b
	testl	%eax, %edi
	jne	LBB0_15
## %bb.9:
	andl	%edi, %esi
	je	LBB0_15
## %bb.10:
	movq	_TPS_CHARGE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r14)
	je	LBB0_15
## %bb.11:
	testl	%edi, %ecx
	je	LBB0_14
## %bb.12:
	movl	$1, %ebx
	testl	%r12d, %ecx
	je	LBB0_26
## %bb.13:
	movq	_FLAG_VBUS_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	36(%r14), %rsi
	movq	%r9, %r12
	callq	_set_bit
	movq	%r12, %r9
LBB0_26:
	xorl	%r8d, %r8d
	cmpl	20(%r14), %ebx
	jne	LBB0_16
	jmp	LBB0_20
LBB0_14:
	xorl	%ebx, %ebx
	testl	%edi, %edx
	sete	%r8b
	setne	%bl
LBB0_15:
	cmpl	20(%r14), %ebx
	je	LBB0_20
LBB0_16:
	movl	%ebx, 20(%r14)
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testb	%r8b, %r8b
	je	LBB0_18
## %bb.17:
	movl	(%r13), %eax
	orl	(%r9), %eax
	testl	%eax, 12(%r14)
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	jmp	LBB0_19
LBB0_18:
	leaq	L_.str.4(%rip), %rdx
LBB0_19:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_20:
	movq	24(%r14), %rax
	movq	_TPS65013@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.21:
	cmpl	$0, 20(%r14)
	je	LBB0_24
## %bb.22:
	testb	%r15b, %r15b
	jne	LBB0_25
LBB0_23:
	movq	_system_power_efficient_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$32, %r14
	movq	_POWER_POLL_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_delayed_work             ## TAILCALL
LBB0_24:
	movq	_TPS_CHG_USB@GOTPCREL(%rip), %rax
	movq	_TPS_CHG_AC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, 12(%r14)
	sete	%al
	testb	%al, %r15b
	je	LBB0_23
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPS_REGSTATUS,4,2              ## @TPS_REGSTATUS
	.comm	_TPS_REG_ONOFF,4,2              ## @TPS_REG_ONOFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: power off button\n"

	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.comm	_TPS_CHGSTATUS,4,2              ## @TPS_CHGSTATUS
L_.str.1:                               ## @.str.1
	.asciz	"chg/irq"

	.comm	_TPS_CHG_USB,4,2                ## @TPS_CHG_USB
	.comm	_TPS_CHG_AC,4,2                 ## @TPS_CHG_AC
L_.str.2:                               ## @.str.2
	.asciz	"conf"

	.comm	_TPS_CHARGE_ENABLE,4,2          ## @TPS_CHARGE_ENABLE
	.comm	_FLAG_VBUS_CHANGED,4,2          ## @FLAG_VBUS_CHANGED
L_.str.3:                               ## @.str.3
	.asciz	"%s: battery %scharging\n"

L_.str.4:                               ## @.str.4
	.space	1

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

L_.str.6:                               ## @.str.6
	.asciz	"dis"

	.comm	_TPS65013,8,3                   ## @TPS65013
	.comm	_system_power_efficient_wq,4,2  ## @system_power_efficient_wq
	.comm	_POWER_POLL_DELAY,4,2           ## @POWER_POLL_DELAY
	.no_dead_strip	_tps65010_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps65010_interrupt
_tps65010_interrupt:                    ; @tps65010_interrupt
	.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	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	w0, [x19, #44]
Lloh0:
	adrp	x8, _TPS_REGSTATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPS_REGSTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	ldp	w9, w8, [x19]
	eor	w8, w8, w0
	str	w0, [x19, #4]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _TPS_REG_ONOFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TPS_REG_ONOFF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	mov	w21, #1
LBB0_5:
	ldr	w8, [x19, #8]
Lloh11:
	adrp	x22, _TPS_CHG_USB@GOTPAGE
Lloh12:
	ldr	x22, [x22, _TPS_CHG_USB@GOTPAGEOFF]
Lloh13:
	adrp	x23, _TPS_CHG_AC@GOTPAGE
Lloh14:
	ldr	x23, [x23, _TPS_CHG_AC@GOTPAGEOFF]
	cbz	w8, LBB0_21
; %bb.6:
	ldr	w0, [x19, #44]
Lloh15:
	adrp	x8, _TPS_CHGSTATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TPS_CHGSTATUS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	ldp	w9, w8, [x19, #8]
	eor	w8, w8, w0
	str	w0, [x19, #12]
	ands	w24, w9, w8
	b.eq	LBB0_21
; %bb.7:
	mov	x20, x0
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_show_chgstatus
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w10, w9, w8
	tst	w10, w20
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x19, #40]
	ldr	w2, [x19, #16]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_show_chgconfig
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w10, w9, w8
LBB0_9:
	ldr	w11, [x19, #12]
	bic	w12, w11, w10
	and	w10, w10, w11
	cmp	w12, #0
	ccmp	w10, #0, #4, eq
	b.eq	LBB0_15
; %bb.10:
	ldr	w10, [x19, #16]
Lloh22:
	adrp	x12, _TPS_CHARGE_ENABLE@GOTPAGE
Lloh23:
	ldr	x12, [x12, _TPS_CHARGE_ENABLE@GOTPAGEOFF]
Lloh24:
	ldr	w12, [x12]
	tst	w12, w10
	b.eq	LBB0_15
; %bb.11:
	tst	w8, w11
	b.eq	LBB0_27
; %bb.12:
	tst	w8, w24
	b.eq	LBB0_14
; %bb.13:
Lloh25:
	adrp	x8, _FLAG_VBUS_CHANGED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FLAG_VBUS_CHANGED@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	add	x1, x19, #36
	bl	_set_bit
LBB0_14:
	mov	w8, #0
	mov	w9, #1
	b	LBB0_16
LBB0_15:
	mov	w9, #0
	mov	w8, #1
LBB0_16:
	ldr	w10, [x19, #20]
	cmp	w9, w10
	b.eq	LBB0_21
; %bb.17:
	str	w9, [x19, #20]
Lloh28:
	adrp	x9, _DRIVER_NAME@GOTPAGE
Lloh29:
	ldr	x9, [x9, _DRIVER_NAME@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x9]
	cbz	w8, LBB0_19
; %bb.18:
	ldr	w8, [x19, #12]
	ldr	w9, [x22]
	ldr	w10, [x23]
	orr	w9, w10, w9
Lloh31:
	adrp	x10, l_.str.5@PAGE
Lloh32:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh33:
	adrp	x11, l_.str.6@PAGE
Lloh34:
	add	x11, x11, l_.str.6@PAGEOFF
	tst	w9, w8
	csel	x8, x11, x10, eq
	b	LBB0_20
LBB0_19:
Lloh35:
	adrp	x8, l_.str.4@PAGE
Lloh36:
	add	x8, x8, l_.str.4@PAGEOFF
LBB0_20:
	str	x8, [sp]
Lloh37:
	adrp	x0, l_.str.3@PAGE
Lloh38:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
LBB0_21:
	ldr	x8, [x19, #24]
Lloh39:
	adrp	x9, _TPS65013@GOTPAGE
Lloh40:
	ldr	x9, [x9, _TPS65013@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.22:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_25
; %bb.23:
	tbnz	w21, #0, LBB0_26
LBB0_24:
Lloh42:
	adrp	x8, _system_power_efficient_wq@GOTPAGE
Lloh43:
	ldr	x8, [x8, _system_power_efficient_wq@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	add	x1, x19, #32
Lloh45:
	adrp	x8, _POWER_POLL_DELAY@GOTPAGE
Lloh46:
	ldr	x8, [x8, _POWER_POLL_DELAY@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	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
	b	_queue_delayed_work
LBB0_25:
	ldr	w8, [x19, #12]
	ldr	w9, [x22]
	ldr	w10, [x23]
	orr	w9, w10, w9
	tst	w9, w8
	cset	w8, eq
	and	w8, w21, w8
	tbz	w8, #0, LBB0_24
LBB0_26:
	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_27:
	tst	w9, w11
	cset	w8, eq
	cset	w9, ne
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_TPS_REGSTATUS,4,2              ; @TPS_REGSTATUS
	.comm	_TPS_REG_ONOFF,4,2              ; @TPS_REG_ONOFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: power off button\n"

	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.comm	_TPS_CHGSTATUS,4,2              ; @TPS_CHGSTATUS
l_.str.1:                               ; @.str.1
	.asciz	"chg/irq"

	.comm	_TPS_CHG_USB,4,2                ; @TPS_CHG_USB
	.comm	_TPS_CHG_AC,4,2                 ; @TPS_CHG_AC
l_.str.2:                               ; @.str.2
	.asciz	"conf"

	.comm	_TPS_CHARGE_ENABLE,4,2          ; @TPS_CHARGE_ENABLE
	.comm	_FLAG_VBUS_CHANGED,4,2          ; @FLAG_VBUS_CHANGED
l_.str.3:                               ; @.str.3
	.asciz	"%s: battery %scharging\n"

l_.str.4:                               ; @.str.4
	.space	1

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

l_.str.6:                               ; @.str.6
	.asciz	"dis"

	.comm	_TPS65013,8,3                   ; @TPS65013
	.comm	_system_power_efficient_wq,4,2  ; @system_power_efficient_wq
	.comm	_POWER_POLL_DELAY,4,2           ; @POWER_POLL_DELAY
	.no_dead_strip	_tps65010_interrupt
.subsections_via_symbols
