	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sonypi_disable
_sonypi_disable:                        ## @sonypi_disable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$129, %edi
	xorl	%esi, %esi
	callq	_sonypi_call2
	movq	_camera@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_sonypi_camera_off
LBB0_2:
	movq	_SONYPI_ACPI_ACTIVE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	_fnkeyinit@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movl	$241, %edi
	movl	$178, %esi
	callq	_outb
LBB0_5:
	movq	_sonypi_device@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.8:
	xorl	%eax, %eax
	callq	_sonypi_type1_dis
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
	callq	_sonypi_type3_dis
	jmp	LBB0_11
LBB0_9:
	xorl	%eax, %eax
	callq	_sonypi_type2_dis
LBB0_11:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_camera,8,3                     ## @camera
	.comm	_SONYPI_ACPI_ACTIVE,4,2         ## @SONYPI_ACPI_ACTIVE
	.comm	_fnkeyinit,8,3                  ## @fnkeyinit
	.comm	_sonypi_device,4,2              ## @sonypi_device
	.no_dead_strip	_sonypi_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sonypi_disable
_sonypi_disable:                        ; @sonypi_disable
	.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
	mov	w0, #129
	mov	w1, #0
	bl	_sonypi_call2
Lloh0:
	adrp	x8, _camera@GOTPAGE
Lloh1:
	ldr	x8, [x8, _camera@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_sonypi_camera_off
LBB0_2:
Lloh3:
	adrp	x8, _SONYPI_ACPI_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SONYPI_ACPI_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _fnkeyinit@GOTPAGE
Lloh7:
	ldr	x9, [x9, _fnkeyinit@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #241
	mov	w1, #178
	bl	_outb
LBB0_4:
Lloh9:
	adrp	x8, _sonypi_device@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sonypi_device@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #130
	b.ne	LBB0_10
; %bb.7:
	bl	_sonypi_type1_dis
	b	LBB0_10
LBB0_8:
	bl	_sonypi_type3_dis
	b	LBB0_10
LBB0_9:
	bl	_sonypi_type2_dis
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_camera,8,3                     ; @camera
	.comm	_SONYPI_ACPI_ACTIVE,4,2         ; @SONYPI_ACPI_ACTIVE
	.comm	_fnkeyinit,8,3                  ; @fnkeyinit
	.comm	_sonypi_device,4,2              ; @sonypi_device
	.no_dead_strip	_sonypi_disable
.subsections_via_symbols
