	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_nc_backlight_ng_read_limits
_sony_nc_backlight_ng_read_limits:      ## @sony_nc_backlight_ng_read_limits
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movl	%edi, (%rsi)
	movb	$0, 4(%rsi)
	movl	$255, 8(%rsi)
	callq	_sony_find_snc_handle
	movl	%eax, -84(%rbp)
	movq	_sony_nc_acpi_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-84(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movl	$32, %r8d
	callq	_sony_nc_buffer_call
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movb	$-1, %r13b
	xorl	%ebx, %ebx
	addl	$-303, %r15d                    ## imm = 0xFED1
	cmpl	$29, %r15d
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	ja	LBB0_9
## %bb.2:
	movl	$806354944, %eax                ## imm = 0x30100000
	btl	%r15d, %eax
	jae	LBB0_3
## %bb.4:
	movl	$16, %r14d
	jmp	LBB0_5
LBB0_3:
	movl	$9, %r14d
	movl	$257, %eax                      ## imm = 0x101
	btl	%r15d, %eax
	jae	LBB0_9
LBB0_5:
	movb	$-1, %r13b
	leaq	-80(%rbp), %r12
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r15
	jge	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	-80(%rbp,%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movzbl	-80(%rbp,%r15), %eax
	testb	%al, %al
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	%bl, %ebx
	cmpb	%bl, %al
	movzbl	%al, %ecx
	cmoval	%ecx, %ebx
	movzbl	%r13b, %r13d
	cmpb	%r13b, %al
	cmovbl	%ecx, %r13d
	incq	%r15
	cmpq	%r15, %r14
	jne	LBB0_6
LBB0_9:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movb	%r13b, 4(%rax)
	movzbl	%bl, %edx
	movl	%edx, 8(%rax)
	movzbl	%r13b, %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_sony_nc_acpi_handle,4,2        ## @sony_nc_acpi_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SN06"

L_.str.1:                               ## @.str.1
	.asciz	"Brightness level: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Brightness levels: min=%d max=%d\n"

	.no_dead_strip	_sony_nc_backlight_ng_read_limits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_nc_backlight_ng_read_limits
_sony_nc_backlight_ng_read_limits:      ; @sony_nc_backlight_ng_read_limits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	w0, [x1]
	strb	wzr, [x1, #4]
	mov	w8, #255
	str	w8, [x1, #8]
	bl	_sony_find_snc_handle
	str	w0, [sp, #12]
Lloh3:
	adrp	x8, _sony_nc_acpi_handle@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sony_nc_acpi_handle@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #16
	mov	w4, #32
	bl	_sony_nc_buffer_call
	tbnz	w0, #31, LBB0_11
; %bb.1:
	mov	w22, #0
	mov	w21, #255
	sub	w8, w20, #303
	cmp	w8, #29
	b.hi	LBB0_10
; %bb.2:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #806354944
	tst	w8, w9
	b.eq	LBB0_4
; %bb.3:
	mov	w23, #16
	b	LBB0_6
LBB0_4:
	mov	w9, #257
	tst	w8, w9
	b.eq	LBB0_10
; %bb.5:
	mov	w23, #9
LBB0_6:
	mov	x24, #0
	mov	w22, #0
	mov	w21, #255
	add	x25, sp, #16
Lloh8:
	adrp	x20, l_.str.1@PAGE
Lloh9:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.ge	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w1, [x25, x24]
	mov	x0, x20
	bl	_dprintk
	ldrb	w8, [x25, x24]
	cbz	w8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	and	w9, w22, #0xff
	cmp	w8, w9
	csel	w22, w8, w9, hi
	and	w9, w21, #0xff
	cmp	w8, w9
	csel	w21, w8, w9, lo
	add	x24, x24, #1
	cmp	x23, x24
	b.ne	LBB0_7
LBB0_10:
	strb	w21, [x19, #4]
	and	w8, w22, #0xff
	str	w8, [x19, #8]
	and	x8, x22, #0xff
	str	x8, [sp]
	and	w1, w21, #0xff
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
LBB0_11:
	ldr	x8, [sp, #56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_sony_nc_acpi_handle,4,2        ; @sony_nc_acpi_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SN06"

l_.str.1:                               ; @.str.1
	.asciz	"Brightness level: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Brightness levels: min=%d max=%d\n"

	.no_dead_strip	_sony_nc_backlight_ng_read_limits
.subsections_via_symbols
