	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps6521x_pb_irq
_tps6521x_pb_irq:                       ## @tps6521x_pb_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	16(%rsi), %r14
	movl	8(%rsi), %edi
	movl	4(%r14), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_6
LBB0_2:
	movl	(%r14), %eax
	movl	(%rbx), %edi
	movq	_KEY_POWER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, -20(%rbp)
	je	LBB0_4
## %bb.3:
	movl	$1, %edx
	callq	_input_report_key
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_pm_wakeup_event
	jmp	LBB0_5
LBB0_4:
	xorl	%edx, %edx
	callq	_input_report_key
LBB0_5:
	movl	(%rbx), %edi
	callq	_input_sync
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't read register: %d\n"

	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tps6521x_pb_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps6521x_pb_irq
_tps6521x_pb_irq:                       ; @tps6521x_pb_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x20, [x1, #16]
	ldr	w0, [x1, #8]
	ldr	w1, [x20, #4]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_2:
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	ldr	w0, [x19]
Lloh2:
	adrp	x10, _KEY_POWER@GOTPAGE
Lloh3:
	ldr	x10, [x10, _KEY_POWER@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x10]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w2, #1
	bl	_input_report_key
	ldr	w0, [x19, #4]
	mov	w1, #0
	bl	_pm_wakeup_event
	b	LBB0_5
LBB0_4:
	mov	w2, #0
	bl	_input_report_key
LBB0_5:
	ldr	w0, [x19]
	bl	_input_sync
LBB0_6:
Lloh5:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't read register: %d\n"

	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tps6521x_pb_irq
.subsections_via_symbols
