	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mxm_wmi_call_mxmx              ## -- Begin function mxm_wmi_call_mxmx
	.p2align	4, 0x90
_mxm_wmi_call_mxmx:                     ## @mxm_wmi_call_mxmx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	$1, -32(%rbp)
	movq	_MXM_WMMX_FUNC_MXMX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	$12, -64(%rbp)
	leaq	-32(%rbp), %rax
	movl	%eax, -56(%rbp)
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -40(%rbp)
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_printk
	movq	_MXM_WMMX_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	leaq	-64(%rbp), %rcx
	leaq	-48(%rbp), %r8
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_wmi_evaluate_method
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %r14d
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_printk
LBB0_3:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MXM_WMMX_FUNC_MXMX,4,2         ## @MXM_WMMX_FUNC_MXMX
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"calling mux switch %d\n"

	.comm	_MXM_WMMX_GUID,4,2              ## @MXM_WMMX_GUID
L_.str.1:                               ## @.str.1
	.asciz	"mux mutex set switched %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mxm_wmi_call_mxmx
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mxm_wmi_call_mxmx
	.p2align	2
_mxm_wmi_call_mxmx:                     ; @mxm_wmi_call_mxmx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh2:
	adrp	x8, _MXM_WMMX_FUNC_MXMX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MXM_WMMX_FUNC_MXMX@GOTPAGEOFF]
	str	d0, [sp, #32]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	mov	w8, #12
	str	x8, [sp, #16]
	add	x8, sp, #32
	str	w8, [sp, #24]
Lloh5:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh7:
	ldrsw	x8, [x8]
	str	x8, [sp]
	str	wzr, [sp, #8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printk
Lloh10:
	adrp	x8, _MXM_WMMX_GUID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MXM_WMMX_GUID@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x3, sp, #16
	mov	x4, sp
	mov	w1, #0
	mov	x2, x19
	bl	_wmi_evaluate_method
	mov	x19, x0
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_2
; %bb.1:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printk
	mov	w19, #0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MXM_WMMX_FUNC_MXMX,4,2         ; @MXM_WMMX_FUNC_MXMX
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"calling mux switch %d\n"

	.comm	_MXM_WMMX_GUID,4,2              ; @MXM_WMMX_GUID
l_.str.1:                               ; @.str.1
	.asciz	"mux mutex set switched %d\n"

.subsections_via_symbols
