	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_exec_begin_control_op  ## -- Begin function acpi_ds_exec_begin_control_op
	.p2align	4, 0x90
_acpi_ds_exec_begin_control_op:         ## @acpi_ds_exec_begin_control_op
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ds_exec_begin_control_op@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_NAME
	movl	%ebx, %edi
	callq	_ACPI_DEBUG_PRINT
	movl	(%r15), %eax
	cmpl	$131, %eax
	je	LBB0_9
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.3:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	20(%rbx), %ecx
	decl	%ecx
	cmpl	%ecx, 4(%rax)
	jne	LBB0_6
## %bb.5:
	movq	_ACPI_CONTROL_CONDITIONAL_EXECUTING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_12
LBB0_6:
	xorl	%eax, %eax
	callq	_acpi_ut_create_control_state
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	20(%rbx), %ecx
	decl	%ecx
	movl	%ecx, 8(%rax)
	movl	16(%rbx), %ecx
	movl	%ecx, 4(%rax)
	movl	(%r15), %ecx
	movl	%ecx, (%rax)
	addq	$8, %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_acpi_ut_push_generic_state
	jmp	LBB0_12
LBB0_9:
	cmpl	$0, (%rbx)
	je	LBB0_12
## %bb.10:
	movq	_AE_CTRL_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ds_exec_begin_control_op,4,2   ## @ds_exec_begin_control_op
	.comm	_ACPI_DB_DISPATCH,4,2           ## @ACPI_DB_DISPATCH
	.comm	_ACPI_CONTROL_CONDITIONAL_EXECUTING,4,2 ## @ACPI_CONTROL_CONDITIONAL_EXECUTING
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_AE_CTRL_TRUE,4,2               ## @AE_CTRL_TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_exec_begin_control_op  ; -- Begin function acpi_ds_exec_begin_control_op
	.p2align	2
_acpi_ds_exec_begin_control_op:         ; @acpi_ds_exec_begin_control_op
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _AE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _ds_exec_begin_control_op@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ds_exec_begin_control_op@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_NAME
	mov	x0, x20
	bl	_ACPI_DEBUG_PRINT
	ldr	w8, [x21]
	cmp	w8, #131
	b.eq	LBB0_8
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w9, [x8, #4]
	ldr	w10, [x20, #20]
	sub	w10, w10, #1
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.5:
Lloh6:
	adrp	x9, _ACPI_CONTROL_CONDITIONAL_EXECUTING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ACPI_CONTROL_CONDITIONAL_EXECUTING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x8]
	b	LBB0_10
LBB0_6:
	bl	_acpi_ut_create_control_state
	cbz	x0, LBB0_9
; %bb.7:
	mov	x1, x0
	ldr	w8, [x20, #20]
	sub	w8, w8, #1
	str	w8, [x0, #8]
	ldr	w8, [x20, #16]
	str	w8, [x0, #4]
	ldr	w8, [x21]
	str	w8, [x0]
	add	x0, x20, #8
	bl	_acpi_ut_push_generic_state
	b	LBB0_10
LBB0_8:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _AE_CTRL_TRUE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AE_CTRL_TRUE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w19, w19, w9, eq
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ds_exec_begin_control_op,4,2   ; @ds_exec_begin_control_op
	.comm	_ACPI_DB_DISPATCH,4,2           ; @ACPI_DB_DISPATCH
	.comm	_ACPI_CONTROL_CONDITIONAL_EXECUTING,4,2 ; @ACPI_CONTROL_CONDITIONAL_EXECUTING
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_AE_CTRL_TRUE,4,2               ; @AE_CTRL_TRUE
.subsections_via_symbols
