	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function button_irq
_button_irq:                            ## @button_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, %r14
	movl	%edi, %ebx
	movl	16(%rsi), %edi
	movl	%ebx, %esi
	callq	_mc13xxx_irq_ack
	movl	16(%r14), %edi
	movq	_MC13783_REG_INTERRUPT_SENSE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_mc13xxx_reg_read
	cmpl	$128, %ebx
	je	LBB0_9
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_6
## %bb.2:
	cmpl	$130, %ebx
	jne	LBB0_13
## %bb.3:
	movq	_MC13783_IRQSENSE1_ONOFD1S@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	andl	-20(%rbp), %eax
	setne	%dl
	movl	%edx, -20(%rbp)
	movq	_MC13783_PWRB_B1_POL_INVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_5
## %bb.4:
	xorl	$1, %edx
	movl	%edx, -20(%rbp)
LBB0_5:
	movl	4(%r14), %edi
	movq	8(%r14), %rax
	movl	(%rax), %esi
	jmp	LBB0_12
LBB0_9:
	movq	_MC13783_IRQSENSE1_ONOFD3S@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	andl	-20(%rbp), %eax
	setne	%dl
	movl	%edx, -20(%rbp)
	movq	_MC13783_PWRB_B3_POL_INVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_11
## %bb.10:
	xorl	$1, %edx
	movl	%edx, -20(%rbp)
LBB0_11:
	movl	4(%r14), %edi
	movq	8(%r14), %rax
	movl	8(%rax), %esi
	jmp	LBB0_12
LBB0_6:
	movq	_MC13783_IRQSENSE1_ONOFD2S@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	andl	-20(%rbp), %eax
	setne	%dl
	movl	%edx, -20(%rbp)
	movq	_MC13783_PWRB_B2_POL_INVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_8
## %bb.7:
	xorl	$1, %edx
	movl	%edx, -20(%rbp)
LBB0_8:
	movl	4(%r14), %edi
	movq	8(%r14), %rax
	movl	4(%rax), %esi
LBB0_12:
	callq	_input_report_key
LBB0_13:
	movl	4(%r14), %edi
	callq	_input_sync
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC13783_REG_INTERRUPT_SENSE_1,4,2 ## @MC13783_REG_INTERRUPT_SENSE_1
	.comm	_MC13783_IRQSENSE1_ONOFD1S,4,2  ## @MC13783_IRQSENSE1_ONOFD1S
	.comm	_MC13783_PWRB_B1_POL_INVERT,4,2 ## @MC13783_PWRB_B1_POL_INVERT
	.comm	_MC13783_IRQSENSE1_ONOFD2S,4,2  ## @MC13783_IRQSENSE1_ONOFD2S
	.comm	_MC13783_PWRB_B2_POL_INVERT,4,2 ## @MC13783_PWRB_B2_POL_INVERT
	.comm	_MC13783_IRQSENSE1_ONOFD3S,4,2  ## @MC13783_IRQSENSE1_ONOFD3S
	.comm	_MC13783_PWRB_B3_POL_INVERT,4,2 ## @MC13783_PWRB_B3_POL_INVERT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_button_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function button_irq
_button_irq:                            ; @button_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
	mov	x20, x0
	ldr	w0, [x1, #16]
	mov	x1, x20
	bl	_mc13xxx_irq_ack
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _MC13783_REG_INTERRUPT_SENSE_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MC13783_REG_INTERRUPT_SENSE_1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_mc13xxx_reg_read
	cmp	w20, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w20, #129
	b.eq	LBB0_9
; %bb.2:
	cmp	w20, #130
	b.ne	LBB0_13
; %bb.3:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _MC13783_IRQSENSE1_ONOFD1S@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MC13783_IRQSENSE1_ONOFD1S@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w2, ne
	str	w2, [sp, #12]
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _MC13783_PWRB_B1_POL_INVERT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MC13783_PWRB_B1_POL_INVERT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	eor	w2, w2, #0x1
	str	w2, [sp, #12]
LBB0_5:
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	b	LBB0_12
LBB0_6:
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _MC13783_IRQSENSE1_ONOFD3S@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MC13783_IRQSENSE1_ONOFD3S@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w2, ne
	str	w2, [sp, #12]
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _MC13783_PWRB_B3_POL_INVERT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MC13783_PWRB_B3_POL_INVERT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	eor	w2, w2, #0x1
	str	w2, [sp, #12]
LBB0_8:
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	b	LBB0_12
LBB0_9:
	ldr	w8, [sp, #12]
Lloh15:
	adrp	x9, _MC13783_IRQSENSE1_ONOFD2S@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MC13783_IRQSENSE1_ONOFD2S@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w2, ne
	str	w2, [sp, #12]
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _MC13783_PWRB_B2_POL_INVERT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MC13783_PWRB_B2_POL_INVERT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	eor	w2, w2, #0x1
	str	w2, [sp, #12]
LBB0_11:
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
LBB0_12:
	bl	_input_report_key
LBB0_13:
	ldr	w0, [x19, #4]
	bl	_input_sync
Lloh21:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh23:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MC13783_REG_INTERRUPT_SENSE_1,4,2 ; @MC13783_REG_INTERRUPT_SENSE_1
	.comm	_MC13783_IRQSENSE1_ONOFD1S,4,2  ; @MC13783_IRQSENSE1_ONOFD1S
	.comm	_MC13783_PWRB_B1_POL_INVERT,4,2 ; @MC13783_PWRB_B1_POL_INVERT
	.comm	_MC13783_IRQSENSE1_ONOFD2S,4,2  ; @MC13783_IRQSENSE1_ONOFD2S
	.comm	_MC13783_PWRB_B2_POL_INVERT,4,2 ; @MC13783_PWRB_B2_POL_INVERT
	.comm	_MC13783_IRQSENSE1_ONOFD3S,4,2  ; @MC13783_IRQSENSE1_ONOFD3S
	.comm	_MC13783_PWRB_B3_POL_INVERT,4,2 ; @MC13783_PWRB_B3_POL_INVERT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_button_irq
.subsections_via_symbols
