	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_bus_osc_support
_acpi_bus_osc_support:                  ## @acpi_bus_osc_support
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	$1, -80(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movl	$8, -56(%rbp)
	leaq	-24(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	_sb_uuid_str@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_OSC_QUERY_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_OSC_QUERY_TYPE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, -24(%rbp,%rcx,4)
	movq	_OSC_SB_PR3_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_OSC_SUPPORT_TYPE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	%eax, -24(%rbp,%rcx,4)
	movq	_ghes_disable@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	jne	LBB0_2
## %bb.1:
	movq	_OSC_SB_APEI_SUPPORT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, -24(%rbp,%rcx,4)
LBB0_2:
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	xorl	%edi, %edi
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	callq	_is_uv_system
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_is_kdump_kernel
	testq	%rax, %rax
	jne	LBB0_9
LBB0_5:
	movl	-28(%rbp), %edi
	leaq	-80(%rbp), %rsi
	callq	_acpi_run_osc
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	-72(%rbp), %rdi
	movq	(%rbx), %rax
	cmpq	%rax, -64(%rbp)
	jbe	LBB0_8
## %bb.7:
	movq	_OSC_SB_APEI_SUPPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rdi,%rax,4), %ecx
	movq	_osc_sb_apei_support_acked@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
LBB0_8:
	callq	_kfree
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_sb_uuid_str,4,2                ## @sb_uuid_str
	.comm	_OSC_QUERY_ENABLE,4,2           ## @OSC_QUERY_ENABLE
	.comm	_OSC_QUERY_TYPE,8,3             ## @OSC_QUERY_TYPE
	.comm	_OSC_SB_PR3_SUPPORT,4,2         ## @OSC_SB_PR3_SUPPORT
	.comm	_OSC_SUPPORT_TYPE,8,3           ## @OSC_SUPPORT_TYPE
	.comm	_ghes_disable,4,2               ## @ghes_disable
	.comm	_OSC_SB_APEI_SUPPORT,4,2        ## @OSC_SB_APEI_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\_SB"

	.comm	_osc_sb_apei_support_acked,4,2  ## @osc_sb_apei_support_acked
	.comm	_OSC_SB_HOTPLUG_OST_SUPPORT,4,2 ## @OSC_SB_HOTPLUG_OST_SUPPORT
	.comm	_OSC_SB_PAD_SUPPORT,4,2         ## @OSC_SB_PAD_SUPPORT
	.comm	_OSC_SB_PPC_OST_SUPPORT,4,2     ## @OSC_SB_PPC_OST_SUPPORT
	.no_dead_strip	_acpi_bus_osc_support
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_bus_osc_support
_acpi_bus_osc_support:                  ; @acpi_bus_osc_support
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #1
	str	w8, [sp, #16]
	stp	xzr, xzr, [sp, #24]
	mov	w8, #8
	str	w8, [sp, #40]
	sub	x8, x29, #32
	str	x8, [sp, #48]
Lloh3:
	adrp	x9, _sb_uuid_str@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sb_uuid_str@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _OSC_QUERY_ENABLE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _OSC_QUERY_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _OSC_QUERY_TYPE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _OSC_QUERY_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	str	w10, [x8, x11, lsl #2]
	str	w9, [sp, #56]
Lloh12:
	adrp	x9, _OSC_SB_PR3_SUPPORT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OSC_SB_PR3_SUPPORT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x19, _OSC_SUPPORT_TYPE@GOTPAGE
Lloh16:
	ldr	x19, [x19, _OSC_SUPPORT_TYPE@GOTPAGEOFF]
	ldr	x10, [x19]
	str	w9, [x8, x10, lsl #2]
Lloh17:
	adrp	x11, _ghes_disable@GOTPAGE
Lloh18:
	ldr	x11, [x11, _ghes_disable@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	cbnz	w11, LBB0_2
; %bb.1:
Lloh20:
	adrp	x11, _OSC_SB_APEI_SUPPORT@GOTPAGE
Lloh21:
	ldr	x11, [x11, _OSC_SB_APEI_SUPPORT@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	orr	w9, w11, w9
	str	w9, [x8, x10, lsl #2]
LBB0_2:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, #0
	bl	_acpi_get_handle
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_5
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	bl	_is_uv_system
	cbz	x0, LBB0_7
; %bb.6:
	bl	_is_kdump_kernel
	cbnz	x0, LBB0_3
LBB0_7:
	ldr	w0, [sp, #12]
	add	x1, sp, #16
	bl	_acpi_run_osc
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_3
; %bb.8:
	ldr	x8, [x19]
	ldp	x0, x9, [sp, #24]
	cmp	x9, x8
	b.ls	LBB0_10
; %bb.9:
	ldr	w8, [x0, x8, lsl #2]
Lloh28:
	adrp	x9, _OSC_SB_APEI_SUPPORT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _OSC_SB_APEI_SUPPORT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh31:
	adrp	x9, _osc_sb_apei_support_acked@GOTPAGE
Lloh32:
	ldr	x9, [x9, _osc_sb_apei_support_acked@GOTPAGEOFF]
Lloh33:
	str	w8, [x9]
LBB0_10:
	bl	_kfree
	b	LBB0_3
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_sb_uuid_str,4,2                ; @sb_uuid_str
	.comm	_OSC_QUERY_ENABLE,4,2           ; @OSC_QUERY_ENABLE
	.comm	_OSC_QUERY_TYPE,8,3             ; @OSC_QUERY_TYPE
	.comm	_OSC_SB_PR3_SUPPORT,4,2         ; @OSC_SB_PR3_SUPPORT
	.comm	_OSC_SUPPORT_TYPE,8,3           ; @OSC_SUPPORT_TYPE
	.comm	_ghes_disable,4,2               ; @ghes_disable
	.comm	_OSC_SB_APEI_SUPPORT,4,2        ; @OSC_SB_APEI_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\_SB"

	.comm	_osc_sb_apei_support_acked,4,2  ; @osc_sb_apei_support_acked
	.comm	_OSC_SB_HOTPLUG_OST_SUPPORT,4,2 ; @OSC_SB_HOTPLUG_OST_SUPPORT
	.comm	_OSC_SB_PAD_SUPPORT,4,2         ; @OSC_SB_PAD_SUPPORT
	.comm	_OSC_SB_PPC_OST_SUPPORT,4,2     ; @OSC_SB_PPC_OST_SUPPORT
	.no_dead_strip	_acpi_bus_osc_support
.subsections_via_symbols
