	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_gps_switch
_asus_gps_switch:                       ## @asus_gps_switch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_METHOD_GPS_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_METHOD_GPS_ON@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rsi
	movl	(%rdi), %edi
	movl	$2, %edx
	callq	_write_acpi_int
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovel	%edx, %ecx
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_METHOD_GPS_ON,8,3              ## @METHOD_GPS_ON
	.comm	_METHOD_GPS_OFF,8,3             ## @METHOD_GPS_OFF
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_asus_gps_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_gps_switch
_asus_gps_switch:                       ; @asus_gps_switch
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _METHOD_GPS_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _METHOD_GPS_ON@GOTPAGEOFF]
Lloh2:
	adrp	x9, _METHOD_GPS_OFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _METHOD_GPS_OFF@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	x1, [x8]
	ldr	w0, [x0]
	mov	w2, #2
	bl	_write_acpi_int
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_METHOD_GPS_ON,8,3              ; @METHOD_GPS_ON
	.comm	_METHOD_GPS_OFF,8,3             ; @METHOD_GPS_OFF
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_asus_gps_switch
.subsections_via_symbols
