	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sony_nc_gfx_switch_status_get
___sony_nc_gfx_switch_status_get:       ## @__sony_nc_gfx_switch_status_get
	.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
	movq	_gfxs_ctl@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	cmpl	$347, %edi                      ## imm = 0x15B
	setne	%sil
	shll	$8, %esi
	leaq	-12(%rbp), %rdx
	callq	_sony_call_snc_handle
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	cmpl	$296, %eax                      ## imm = 0x128
	je	LBB0_11
## %bb.5:
	cmpl	$347, %eax                      ## imm = 0x15B
	je	LBB0_9
## %bb.6:
	cmpl	$326, %eax                      ## imm = 0x146
	jne	LBB0_14
## %bb.7:
	testb	$1, -12(%rbp)
	je	LBB0_8
LBB0_16:
	movq	_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_9:
	testb	$1, -12(%rbp)
	je	LBB0_16
LBB0_8:
	movq	_STAMINA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_11:
	movl	-12(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movl	-12(%rbp), %eax
	testb	$-128, %al
	jne	LBB0_17
## %bb.12:
	testb	$2, %al
	jne	LBB0_8
	jmp	LBB0_16
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_17:
	movq	_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_gfxs_ctl,8,3                   ## @gfxs_ctl
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SPEED,4,2                      ## @SPEED
	.comm	_STAMINA,4,2                    ## @STAMINA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GFX Status: 0x%x\n"

	.comm	_AUTO,4,2                       ## @AUTO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	___sony_nc_gfx_switch_status_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sony_nc_gfx_switch_status_get
___sony_nc_gfx_switch_status_get:       ; @__sony_nc_gfx_switch_status_get
	.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
Lloh0:
	adrp	x19, _gfxs_ctl@GOTPAGE
Lloh1:
	ldr	x19, [x19, _gfxs_ctl@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w0, [x8]
	cmp	w0, #347
	cset	w8, ne
	lsl	w1, w8, #8
	add	x2, sp, #12
	bl	_sony_call_snc_handle
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_3:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #296
	b.eq	LBB0_11
; %bb.4:
	cmp	w8, #347
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #326
	b.ne	LBB0_13
; %bb.6:
Lloh4:
	adrp	x8, _SPEED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SPEED@GOTPAGEOFF]
Lloh6:
	adrp	x9, _STAMINA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STAMINA@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _STAMINA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STAMINA@GOTPAGEOFF]
Lloh10:
	adrp	x9, _SPEED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SPEED@GOTPAGEOFF]
LBB0_8:
	ldrb	w10, [sp, #12]
	tst	w10, #0x1
	csel	x8, x9, x8, eq
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
	ldr	w1, [sp, #12]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	w8, [sp, #12]
	tbnz	w8, #7, LBB0_14
; %bb.12:
Lloh14:
	adrp	x9, _STAMINA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _STAMINA@GOTPAGEOFF]
Lloh16:
	adrp	x10, _SPEED@GOTPAGE
Lloh17:
	ldr	x10, [x10, _SPEED@GOTPAGEOFF]
	tst	w8, #0x2
	csel	x8, x10, x9, eq
	b	LBB0_9
LBB0_13:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_14:
Lloh20:
	adrp	x8, _AUTO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AUTO@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_gfxs_ctl,8,3                   ; @gfxs_ctl
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SPEED,4,2                      ; @SPEED
	.comm	_STAMINA,4,2                    ; @STAMINA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GFX Status: 0x%x\n"

	.comm	_AUTO,4,2                       ; @AUTO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	___sony_nc_gfx_switch_status_get
.subsections_via_symbols
