	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_meson_sm_call_write            ## -- Begin function meson_sm_call_write
	.p2align	4, 0x90
_meson_sm_call_write:                   ## @meson_sm_call_write
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	_fw@GOTPCREL(%rip), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movl	%edx, %ebx
	movl	%esi, %edx
	cmpl	%esi, (%rcx)
	jb	LBB0_6
## %bb.3:
	cmpl	$0, 4(%rcx)
	je	LBB0_6
## %bb.4:
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movq	%rdi, %rsi
	movl	24(%rbp), %r13d
	movl	(%rax), %edi
	callq	_memcpy
	movl	%r13d, (%rsp)
	leaq	-44(%rbp), %rsi
	movl	%ebx, %edi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	16(%rbp), %r9d
	callq	_meson_sm_call
	testq	%rax, %rax
	js	LBB0_6
## %bb.5:
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fw,16,3                        ## @fw
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_meson_sm_call_write            ; -- Begin function meson_sm_call_write
	.p2align	2
_meson_sm_call_write:                   ; @meson_sm_call_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _fw@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fw@GOTPAGEOFF]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_6
; %bb.1:
	mov	x24, x2
	mov	x2, x1
	ldr	w10, [x9]
	cmp	w10, w1
	b.lo	LBB0_5
; %bb.2:
	ldr	w9, [x9, #4]
	cbz	w9, LBB0_5
; %bb.3:
	mov	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x1, x0
	ldr	w0, [x8]
	bl	_memcpy
	add	x1, sp, #12
	mov	x0, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	bl	_meson_sm_call
	tbnz	x0, #63, LBB0_5
; %bb.4:
	ldr	w0, [sp, #12]
	cbnz	w0, LBB0_8
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_fw,16,3                        ; @fw
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
