	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_pic_irq
_sony_pic_irq:                          ## @sony_pic_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	16(%rsi), %rax
	movq	(%rax), %rdi
	callq	_inb_p
	movl	%eax, %r12d
	movq	16(%r14), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	8(%r14), %rdi
	addq	(%rax), %rdi
LBB0_2:
	callq	_inb_p
	movl	%eax, %r15d
	movq	8(%r14), %r8
	movq	16(%r14), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_dprintk
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.3:
	cmpl	$255, %r12d
	je	LBB0_18
## %bb.4:
	movq	24(%r14), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_15
## %bb.5:
	movq	_mask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	xorl	%ecx, %ecx
	movl	%r15d, %esi
	notl	%esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	movq	%rcx, %rdx
	shlq	$4, %rdx
	movl	(%rax,%rdx), %edi
	testl	%edi, %edi
	je	LBB0_15
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%rcx, %rdx
	shlq	$4, %rdx
	testl	%esi, 4(%rax,%rdx)
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	andl	%r8d, %edi
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rax,%rdx), %rdi
	movl	(%rdi), %ebx
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	4(%rdi), %r12d
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	$12, %rdi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rdi), %ebx
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	leaq	8(%rdi), %rdx
	cmpl	(%rdi), %r12d
	movq	%rdx, %rdi
	jne	LBB0_11
LBB0_13:
	movl	%ebx, %edi
	callq	_sony_laptop_report_input_event
	movl	%ebx, %edi
	callq	_sonypi_compat_report_event
	jmp	LBB0_18
LBB0_15:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_18
LBB0_17:
	movq	8(%r14), %r8
	movq	16(%r14), %rax
	movq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_dprintk
LBB0_18:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"event ([%.2x] [%.2x]) at port 0x%.4x(+0x%.2x)\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_mask,4,2                       ## @mask
L_.str.1:                               ## @.str.1
	.asciz	"unknown event ([%.2x] [%.2x]) at port 0x%.4x(+0x%.2x)\n"

	.no_dead_strip	_sony_pic_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_pic_irq
_sony_pic_irq:                          ; @sony_pic_irq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	x8, [x1, #16]
	ldr	x0, [x8]
	bl	_inb_p
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	add	x0, x9, x8
LBB0_2:
	bl	_inb_p
	mov	x21, x0
	ldp	x4, x8, [x19, #8]
	ldr	x3, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_dprintk
	cbz	w20, LBB0_17
; %bb.3:
	cmp	w20, #255
	b.eq	LBB0_17
; %bb.4:
	ldr	x8, [x19, #24]
	ldr	w11, [x8]
	cbz	w11, LBB0_14
; %bb.5:
	mov	x9, #0
Lloh2:
	adrp	x10, _mask@GOTPAGE
Lloh3:
	ldr	x10, [x10, _mask@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #1
	lsl	x11, x9, #4
	ldr	w11, [x8, x11]
	cbz	w11, LBB0_14
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	add	x12, x8, x9, lsl #4
	ldr	w13, [x12, #4]
	bic	w13, w13, w21
	and	w11, w10, w11
	cmp	w13, #0
	ccmp	w11, #0, #4, eq
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x11, [x12, #8]
	ldr	w22, [x11]
	cbz	w22, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w12, [x11, #4]
	cmp	w20, w12
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x11, x11, #12
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w22, [x11, #-4]
	cbz	w22, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w12, [x11], #8
	cmp	w20, w12
	b.ne	LBB0_11
LBB0_13:
	mov	x0, x22
	bl	_sony_laptop_report_input_event
	mov	x0, x22
	bl	_sonypi_compat_report_event
	b	LBB0_17
LBB0_14:
	ldr	x8, [x19]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x21
	mov	x1, x20
	blr	x8
	cbz	x0, LBB0_17
LBB0_16:
	ldp	x4, x8, [x19, #8]
	ldr	x3, [x8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_dprintk
LBB0_17:
Lloh7:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"event ([%.2x] [%.2x]) at port 0x%.4x(+0x%.2x)\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_mask,4,2                       ; @mask
l_.str.1:                               ; @.str.1
	.asciz	"unknown event ([%.2x] [%.2x]) at port 0x%.4x(+0x%.2x)\n"

	.no_dead_strip	_sony_pic_irq
.subsections_via_symbols
