	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_result_push            ## -- Begin function acpi_ds_result_push
	.p2align	4, 0x90
_acpi_ds_result_push:                   ## @acpi_ds_result_push
	.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, %r14
	movq	_ds_result_push@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_NAME
	movq	(%r15), %rdi
	movq	8(%r15), %rax
	cmpq	%rax, %rdi
	jle	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_acpi_ds_result_stack_push
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_5
## %bb.18:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	jmp	LBB0_17
LBB0_5:
	movq	(%r15), %rdi
	movq	8(%r15), %rax
LBB0_6:
	cmpq	%rax, %rdi
	jge	LBB0_7
## %bb.8:
	movq	24(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.10:
	testq	%r14, %r14
	je	LBB0_11
## %bb.12:
	movq	_ACPI_RESULTS_FRAME_OBJ_NUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rdi, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_13
## %bb.14:
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
LBB0_2:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	_AE_AML_INTERNAL@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_13:
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_15:
	movq	(%rcx), %rax
	movq	%r14, (%rax,%rdx,8)
	incq	%rdi
	movq	%rdi, (%r15)
	movq	%r14, %rdi
	callq	_acpi_ut_get_object_type_name
	movl	16(%r15), %edi
	callq	_ACPI_DEBUG_PRINT
	movq	_AE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ds_result_push,4,2             ## @ds_result_push
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Result stack is full"

	.comm	_AE_AML_INTERNAL,4,2            ## @AE_AML_INTERNAL
L_.str.1:                               ## @.str.1
	.asciz	"Failed to extend the result stack"

L_.str.2:                               ## @.str.2
	.asciz	"No free elements in result stack"

L_.str.3:                               ## @.str.3
	.asciz	"No result stack frame during push"

	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_ACPI_RESULTS_FRAME_OBJ_NUM,8,3 ## @ACPI_RESULTS_FRAME_OBJ_NUM
	.comm	_ACPI_DB_EXEC,4,2               ## @ACPI_DB_EXEC
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_result_push            ; -- Begin function acpi_ds_result_push
	.p2align	2
_acpi_ds_result_push:                   ; @acpi_ds_result_push
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ds_result_push@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ds_result_push@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_NAME
	ldp	x0, x8, [x19]
	cmp	x0, x8
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_2:
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_acpi_ds_result_stack_push
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
	b	LBB0_14
LBB0_5:
	ldp	x0, x8, [x19]
LBB0_6:
	cmp	x0, x8
	b.ge	LBB0_10
; %bb.7:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_11
; %bb.8:
	cbz	x20, LBB0_15
; %bb.9:
Lloh7:
	adrp	x9, _ACPI_RESULTS_FRAME_OBJ_NUM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ACPI_RESULTS_FRAME_OBJ_NUM@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	udiv	x10, x0, x9
	msub	x9, x10, x9, x0
	ldr	x8, [x8]
	str	x20, [x8, x9, lsl #3]
	add	x8, x0, #1
	str	x8, [x19]
	mov	x0, x20
	bl	_acpi_ut_get_object_type_name
	ldr	w0, [x19, #16]
	bl	_ACPI_DEBUG_PRINT
Lloh10:
	adrp	x8, _AE_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_12:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
Lloh16:
	adrp	x8, _AE_AML_INTERNAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AE_AML_INTERNAL@GOTPAGEOFF]
LBB0_13:
	ldr	w21, [x8]
LBB0_14:
	mov	x0, x21
	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
LBB0_15:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
Lloh18:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ds_result_push,4,2             ; @ds_result_push
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Result stack is full"

	.comm	_AE_AML_INTERNAL,4,2            ; @AE_AML_INTERNAL
l_.str.1:                               ; @.str.1
	.asciz	"Failed to extend the result stack"

l_.str.2:                               ; @.str.2
	.asciz	"No free elements in result stack"

l_.str.3:                               ; @.str.3
	.asciz	"No result stack frame during push"

	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_ACPI_RESULTS_FRAME_OBJ_NUM,8,3 ; @ACPI_RESULTS_FRAME_OBJ_NUM
	.comm	_ACPI_DB_EXEC,4,2               ; @ACPI_DB_EXEC
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
