	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_find_snc_handle
_sony_find_snc_handle:                  ## @sony_find_snc_handle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testl	%edi, %edi
	je	LBB0_22
## %bb.1:
	movq	_handles@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.2:
	movl	%edi, %esi
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	cmpl	%edi, (%rax)
	je	LBB0_3
## %bb.4:
	movl	$1, %ebx
	cmpl	%esi, 4(%rax)
	je	LBB0_3
## %bb.5:
	movl	$2, %ebx
	cmpl	%esi, 8(%rax)
	je	LBB0_3
## %bb.6:
	movl	$3, %ebx
	cmpl	%esi, 12(%rax)
	je	LBB0_3
## %bb.7:
	movl	$4, %ebx
	cmpl	%esi, 16(%rax)
	je	LBB0_3
## %bb.8:
	movl	$5, %ebx
	cmpl	%esi, 20(%rax)
	je	LBB0_3
## %bb.9:
	movl	$6, %ebx
	cmpl	%esi, 24(%rax)
	je	LBB0_3
## %bb.10:
	movl	$7, %ebx
	cmpl	%esi, 28(%rax)
	je	LBB0_3
## %bb.11:
	movl	$8, %ebx
	cmpl	%esi, 32(%rax)
	je	LBB0_3
## %bb.12:
	movl	$9, %ebx
	cmpl	%esi, 36(%rax)
	je	LBB0_3
## %bb.13:
	movl	$10, %ebx
	cmpl	%esi, 40(%rax)
	je	LBB0_3
## %bb.14:
	movl	$11, %ebx
	cmpl	%esi, 44(%rax)
	je	LBB0_3
## %bb.15:
	movl	$12, %ebx
	cmpl	%esi, 48(%rax)
	je	LBB0_3
## %bb.16:
	movl	$13, %ebx
	cmpl	%esi, 52(%rax)
	je	LBB0_3
## %bb.17:
	movl	$14, %ebx
	cmpl	%esi, 56(%rax)
	je	LBB0_3
## %bb.18:
	movl	$15, %ebx
	cmpl	%esi, 60(%rax)
	jne	LBB0_19
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_21
LBB0_22:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_20:
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_19:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_handles,8,3                    ## @handles
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found handle 0x%.4x (offset: 0x%.2x)\n"

L_.str.1:                               ## @.str.1
	.asciz	"handle 0x%.4x not found\n"

	.no_dead_strip	_sony_find_snc_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_find_snc_handle
_sony_find_snc_handle:                  ; @sony_find_snc_handle
	.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
	cbz	w0, LBB0_36
; %bb.1:
Lloh0:
	adrp	x8, _handles@GOTPAGE
Lloh1:
	ldr	x8, [x8, _handles@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_36
; %bb.2:
	mov	x1, x0
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, w0
	b.ne	LBB0_4
; %bb.3:
	mov	w19, #0
	b	LBB0_34
LBB0_4:
	ldr	w9, [x8, #4]
	cmp	w9, w1
	b.ne	LBB0_6
; %bb.5:
	mov	w19, #1
	b	LBB0_34
LBB0_6:
	ldr	w9, [x8, #8]
	cmp	w9, w1
	b.ne	LBB0_8
; %bb.7:
	mov	w19, #2
	b	LBB0_34
LBB0_8:
	ldr	w9, [x8, #12]
	cmp	w9, w1
	b.ne	LBB0_10
; %bb.9:
	mov	w19, #3
	b	LBB0_34
LBB0_10:
	ldr	w9, [x8, #16]
	cmp	w9, w1
	b.ne	LBB0_12
; %bb.11:
	mov	w19, #4
	b	LBB0_34
LBB0_12:
	ldr	w9, [x8, #20]
	cmp	w9, w1
	b.ne	LBB0_14
; %bb.13:
	mov	w19, #5
	b	LBB0_34
LBB0_14:
	ldr	w9, [x8, #24]
	cmp	w9, w1
	b.ne	LBB0_16
; %bb.15:
	mov	w19, #6
	b	LBB0_34
LBB0_16:
	ldr	w9, [x8, #28]
	cmp	w9, w1
	b.ne	LBB0_18
; %bb.17:
	mov	w19, #7
	b	LBB0_34
LBB0_18:
	ldr	w9, [x8, #32]
	cmp	w9, w1
	b.ne	LBB0_20
; %bb.19:
	mov	w19, #8
	b	LBB0_34
LBB0_20:
	ldr	w9, [x8, #36]
	cmp	w9, w1
	b.ne	LBB0_22
; %bb.21:
	mov	w19, #9
	b	LBB0_34
LBB0_22:
	ldr	w9, [x8, #40]
	cmp	w9, w1
	b.ne	LBB0_24
; %bb.23:
	mov	w19, #10
	b	LBB0_34
LBB0_24:
	ldr	w9, [x8, #44]
	cmp	w9, w1
	b.ne	LBB0_26
; %bb.25:
	mov	w19, #11
	b	LBB0_34
LBB0_26:
	ldr	w9, [x8, #48]
	cmp	w9, w1
	b.ne	LBB0_28
; %bb.27:
	mov	w19, #12
	b	LBB0_34
LBB0_28:
	ldr	w9, [x8, #52]
	cmp	w9, w1
	b.ne	LBB0_30
; %bb.29:
	mov	w19, #13
	b	LBB0_34
LBB0_30:
	ldr	w9, [x8, #56]
	cmp	w9, w1
	b.ne	LBB0_32
; %bb.31:
	mov	w19, #14
	b	LBB0_34
LBB0_32:
	ldr	w8, [x8, #60]
	cmp	w8, w1
	b.ne	LBB0_35
; %bb.33:
	mov	w19, #15
LBB0_34:
	str	x19, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	b	LBB0_37
LBB0_35:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
LBB0_36:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_37:
	mov	x0, x19
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_handles,8,3                    ; @handles
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found handle 0x%.4x (offset: 0x%.2x)\n"

l_.str.1:                               ; @.str.1
	.asciz	"handle 0x%.4x not found\n"

	.no_dead_strip	_sony_find_snc_handle
.subsections_via_symbols
