	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_nc_handles_setup
_sony_nc_handles_setup:                 ## @sony_nc_handles_setup
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	movq	_handles@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	movq	_sony_nc_acpi_handle@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %r15
	leaq	-48(%rbp), %r12
	leaq	-44(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	callq	_dprintk
	movl	-44(%rbp), %eax
	movq	_handles@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdi
	movl	%eax, (%rdi,%rbx,4)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	32(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	(%r14), %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_sony_nc_int_call
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_handles@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	jmp	LBB0_6
LBB0_7:
	movq	_debug@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.8:
	movq	_handles@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	$16, %rdi
	callq	_sysfs_attr_init
	movq	(%r14), %rax
	leaq	8(%rax), %rsi
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, 16(%rax)
	movq	_S_IRUGO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_sony_nc_handles_show@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_device_create_file
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	(%r14), %rdi
	callq	_kfree
	movq	$0, (%r14)
	movl	$-1, %ebx
	jmp	LBB0_10
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_handles,8,3                    ## @handles
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sony_nc_acpi_handle,4,2        ## @sony_nc_acpi_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SN00"

L_.str.1:                               ## @.str.1
	.asciz	"caching handle 0x%.4x (offset: 0x%.2x)\n"

	.comm	_debug,8,3                      ## @debug
L_.str.2:                               ## @.str.2
	.asciz	"handles"

	.comm	_S_IRUGO,4,2                    ## @S_IRUGO
	.comm	_sony_nc_handles_show,4,2       ## @sony_nc_handles_show
	.no_dead_strip	_sony_nc_handles_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_nc_handles_setup
_sony_nc_handles_setup:                 ; @sony_nc_handles_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
Lloh3:
	adrp	x23, _handles@GOTPAGE
Lloh4:
	ldr	x23, [x23, _handles@GOTPAGEOFF]
	str	x0, [x23]
	cbz	x0, LBB0_10
; %bb.1:
	ldr	x0, [x0]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x20, #0
Lloh5:
	adrp	x24, _sony_nc_acpi_handle@GOTPAGE
Lloh6:
	ldr	x24, [x24, _sony_nc_acpi_handle@GOTPAGEOFF]
Lloh7:
	adrp	x21, l_.str@PAGE
Lloh8:
	add	x21, x21, l_.str@PAGEOFF
Lloh9:
	adrp	x22, l_.str.1@PAGE
Lloh10:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [sp, #12]
	mov	x0, x22
	mov	x2, x20
	bl	_dprintk
	ldr	w8, [sp, #12]
	ldr	x9, [x23]
	ldr	x0, [x9]
	str	w8, [x0, x20, lsl #2]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w20, #32
	str	w8, [sp, #8]
	ldr	w0, [x24]
	add	x2, sp, #8
	add	x3, sp, #12
	mov	x1, x21
	bl	_sony_nc_int_call
	cbz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	ldr	x0, [x8]
	b	LBB0_4
LBB0_7:
Lloh11:
	adrp	x8, _debug@GOTPAGE
Lloh12:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	x8, [x23]
	add	x0, x8, #16
	bl	_sysfs_attr_init
Lloh14:
	adrp	x8, l_.str.2@PAGE
Lloh15:
	add	x8, x8, l_.str.2@PAGEOFF
	ldr	x1, [x23]
Lloh16:
	adrp	x9, _sony_nc_handles_show@GOTPAGE
Lloh17:
	ldr	x9, [x9, _sony_nc_handles_show@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	str	w9, [x1, #8]!
	str	x8, [x1, #8]
Lloh19:
	adrp	x8, _S_IRUGO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _S_IRUGO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x1, #16]
	mov	x0, x19
	bl	_device_create_file
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x0, [x23]
	bl	_kfree
	str	xzr, [x23]
	mov	w0, #-1
	b	LBB0_12
LBB0_10:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_handles,8,3                    ; @handles
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sony_nc_acpi_handle,4,2        ; @sony_nc_acpi_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SN00"

l_.str.1:                               ; @.str.1
	.asciz	"caching handle 0x%.4x (offset: 0x%.2x)\n"

	.comm	_debug,8,3                      ; @debug
l_.str.2:                               ; @.str.2
	.asciz	"handles"

	.comm	_S_IRUGO,4,2                    ; @S_IRUGO
	.comm	_sony_nc_handles_show,4,2       ; @sony_nc_handles_show
	.no_dead_strip	_sony_nc_handles_setup
.subsections_via_symbols
