	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_nc_lid_resume_show
_sony_nc_lid_resume_show:               ## @sony_nc_lid_resume_show
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_LID_RESUME_S5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_LID_RESUME_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jae	LBB0_4
## %bb.1:
	movq	_lid_ctl@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r8
	movq	8(%r8), %rdi
	leaq	(%rdi,%rax,4), %rdi
	addq	$-4, %rdi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addq	$4, %rdi
	cmpq	%rsi, %rdi
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r8), %edi
	xorl	%ecx, %ecx
	btl	%eax, %edi
	setb	%cl
	leaq	L_.str(%rip), %rax
	movq	%rdx, %rdi
	movq	%rax, %rdx
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LID_RESUME_S5,4,2              ## @LID_RESUME_S5
	.comm	_LID_RESUME_MAX,4,2             ## @LID_RESUME_MAX
	.comm	_lid_ctl,8,3                    ## @lid_ctl
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sony_nc_lid_resume_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_nc_lid_resume_show
_sony_nc_lid_resume_show:               ; @sony_nc_lid_resume_show
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _LID_RESUME_S5@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LID_RESUME_S5@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LID_RESUME_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LID_RESUME_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.hs	LBB0_4
; %bb.1:
Lloh6:
	adrp	x10, _lid_ctl@GOTPAGE
Lloh7:
	ldr	x10, [x10, _lid_ctl@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ldr	x11, [x10, #8]
	add	x11, x11, x8, lsl #2
	sub	x11, x11, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x11, #4
	cmp	x11, x1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_5:
Lloh12:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	ldr	w9, [x10]
	lsr	w8, w9, w8
	and	w3, w8, #0x1
Lloh15:
	adrp	x8, l_.str@PAGE
Lloh16:
	add	x8, x8, l_.str@PAGEOFF
	mov	x0, x2
	mov	x2, x8
	b	_snprintf
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LID_RESUME_S5,4,2              ; @LID_RESUME_S5
	.comm	_LID_RESUME_MAX,4,2             ; @LID_RESUME_MAX
	.comm	_lid_ctl,8,3                    ; @lid_ctl
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sony_nc_lid_resume_show
.subsections_via_symbols
