	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smi_request_store
_smi_request_store:                     ## @smi_request_store
	.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	%rcx, %r15
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	%rax, %rbx
	movq	_smi_data_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_smi_data_buf_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$7, %edx
	ja	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	_smi_data_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.3:
	cmpq	$1, %rbx
	je	LBB0_6
## %bb.4:
	cmpq	$2, %rbx
	je	LBB0_5
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%r15d, %r15d
	subq	(%rax), %r15
	jmp	LBB0_10
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_10
LBB0_6:
	movl	(%r14), %edi
	callq	_virt_to_phys
	movl	%eax, 4(%r14)
LBB0_5:
	movq	%r14, %rdi
	callq	_dcdbas_smi_request
	testq	%rax, %rax
	cmovneq	%rax, %r15
LBB0_10:
	movq	_smi_data_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_smi_data_lock,4,2              ## @smi_data_lock
	.comm	_smi_data_buf_size,4,2          ## @smi_data_buf_size
	.comm	_ENODEV,8,3                     ## @ENODEV
	.comm	_smi_data_buf,8,3               ## @smi_data_buf
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_smi_request_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smi_request_store
_smi_request_store:                     ; @smi_request_store
	.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, x3
	mov	x0, x2
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x21, x0
Lloh0:
	adrp	x0, _smi_data_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _smi_data_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _smi_data_buf_size@GOTPAGE
Lloh3:
	ldr	x8, [x8, _smi_data_buf_size@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	cmp	w2, #7
	b.hi	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
Lloh7:
	adrp	x8, _smi_data_buf@GOTPAGE
Lloh8:
	ldr	x8, [x8, _smi_data_buf@GOTPAGEOFF]
Lloh9:
	ldr	x20, [x8]
	cbz	x21, LBB0_7
; %bb.3:
	cmp	x21, #1
	b.eq	LBB0_8
; %bb.4:
	cmp	x21, #2
	b.eq	LBB0_9
; %bb.5:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_10
LBB0_7:
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	b	LBB0_10
LBB0_8:
	ldr	w0, [x20]
	bl	_virt_to_phys
	str	w0, [x20, #4]
LBB0_9:
	mov	x0, x20
	bl	_dcdbas_smi_request
	cmp	x0, #0
	csel	x19, x19, x0, eq
LBB0_10:
Lloh12:
	adrp	x0, _smi_data_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _smi_data_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_smi_data_lock,4,2              ; @smi_data_lock
	.comm	_smi_data_buf_size,4,2          ; @smi_data_buf_size
	.comm	_ENODEV,8,3                     ; @ENODEV
	.comm	_smi_data_buf,8,3               ; @smi_data_buf
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_smi_request_store
.subsections_via_symbols
