	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_nc_hotkeys_decode
_sony_nc_hotkeys_decode:                ## @sony_nc_hotkeys_decode
	.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
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_EINVAL@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	subl	(%r13), %r12d
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movl	%esi, %edi
	movl	$512, %esi                      ## imm = 0x200
	callq	_sony_call_snc_handle
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_dprintk
	subl	(%r13), %ebx
	movl	%ebx, %r12d
	jmp	LBB0_10
LBB0_2:
	movzbl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	cmpl	$256, %r14d                     ## imm = 0x100
	jne	LBB0_3
## %bb.4:
	movq	_sony_100_events@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_sony_127_events@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.6:
	addq	$8, %rax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, %ecx
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rax), %ecx
	addq	$8, %rax
	testl	%ecx, %ecx
	jne	LBB0_7
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %ecx
	callq	_pr_info
	jmp	LBB0_10
LBB0_11:
	movl	-4(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to decode event 0x%.2x 0x%.2x\n"

	.comm	_sony_100_events,8,3            ## @sony_100_events
	.comm	_sony_127_events,8,3            ## @sony_127_events
L_.str.1:                               ## @.str.1
	.asciz	"Unknown hotkey 0x%.2x/0x%.2x (handle 0x%.2x)\n"

	.no_dead_strip	_sony_nc_hotkeys_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_nc_hotkeys_decode
_sony_nc_hotkeys_decode:                ; @sony_nc_hotkeys_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x22, _EINVAL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EINVAL@GOTPAGEOFF]
	ldr	w21, [x22]
	str	wzr, [sp, #12]
	add	x2, sp, #12
	mov	x0, x1
	mov	w1, #512
	bl	_sony_call_snc_handle
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_dprintk
	ldr	w8, [x22]
	neg	w21, w8
	b	LBB0_8
LBB0_2:
	ldrb	w2, [sp, #12]
	str	w2, [sp, #12]
Lloh4:
	adrp	x8, _sony_100_events@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sony_100_events@GOTPAGEOFF]
Lloh6:
	adrp	x9, _sony_127_events@GOTPAGE
Lloh7:
	ldr	x9, [x9, _sony_127_events@GOTPAGEOFF]
	cmp	w19, #256
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	ldr	w9, [x8]
	cbz	w9, LBB0_6
; %bb.3:
	add	x8, x8, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, w2
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8], #8
	cbnz	w9, LBB0_4
LBB0_6:
	neg	w21, w21
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x3, x19
	bl	_pr_info
	b	LBB0_8
LBB0_7:
	ldur	w21, [x8, #-4]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to decode event 0x%.2x 0x%.2x\n"

	.comm	_sony_100_events,8,3            ; @sony_100_events
	.comm	_sony_127_events,8,3            ; @sony_127_events
l_.str.1:                               ; @.str.1
	.asciz	"Unknown hotkey 0x%.2x/0x%.2x (handle 0x%.2x)\n"

	.no_dead_strip	_sony_nc_hotkeys_decode
.subsections_via_symbols
