	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dsm_init
_intel_dsm_init:                        ## @intel_dsm_init
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$1, (%rdi)
	movq	_INTEL_DSM_FNS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	4(%rdi), %rcx
	callq	___intel_dsm
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mmc_hostname
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_debug                       ## TAILCALL
LBB0_1:
	movl	4(%r12), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	movq	_INTEL_DSM_DRV_STRENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rcx
	callq	_intel_dsm
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	-36(%rbp), %ecx
LBB0_3:
	movl	%ecx, 8(%r12)
	movq	_INTEL_DSM_D3_RETUNE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rcx
	callq	_intel_dsm
	xorl	%ecx, %ecx
	orl	-36(%rbp), %eax
	setne	%cl
	movl	%ecx, (%r12)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_DSM_FNS,4,2              ## @INTEL_DSM_FNS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: DSM not supported, error %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: DSM function mask %#x\n"

	.comm	_INTEL_DSM_DRV_STRENGTH,4,2     ## @INTEL_DSM_DRV_STRENGTH
	.comm	_INTEL_DSM_D3_RETUNE,4,2        ## @INTEL_DSM_D3_RETUNE
	.no_dead_strip	_intel_dsm_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dsm_init
_intel_dsm_init:                        ; @intel_dsm_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	w8, #1
	mov	x3, x0
	str	w8, [x3], #4
Lloh0:
	adrp	x8, _INTEL_DSM_FNS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_DSM_FNS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	___intel_dsm
	mov	x21, x0
	mov	x0, x22
	bl	_mmc_hostname
	mov	x1, x0
	cbz	w21, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_pr_debug
LBB0_2:
	ldr	w2, [x19, #4]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
Lloh7:
	adrp	x8, _INTEL_DSM_DRV_STRENGTH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INTEL_DSM_DRV_STRENGTH@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_intel_dsm
	ldr	w8, [sp, #12]
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	str	w8, [x19, #8]
Lloh10:
	adrp	x8, _INTEL_DSM_D3_RETUNE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INTEL_DSM_D3_RETUNE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_intel_dsm
	ldr	w8, [sp, #12]
	orr	w8, w0, w8
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_DSM_FNS,4,2              ; @INTEL_DSM_FNS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: DSM not supported, error %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: DSM function mask %#x\n"

	.comm	_INTEL_DSM_DRV_STRENGTH,4,2     ; @INTEL_DSM_DRV_STRENGTH
	.comm	_INTEL_DSM_D3_RETUNE,4,2        ; @INTEL_DSM_D3_RETUNE
	.no_dead_strip	_intel_dsm_init
.subsections_via_symbols
