	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hermes_write_ltv
_hermes_write_ltv:                      ## @hermes_write_ltv
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rdi, %r12
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_HERMES_DATA0@GOTPCREL(%rip), %rax
	testl	%ebx, %ebx
	je	LBB0_4
LBB0_5:
	movl	(%rax), %r13d
	movq	%r12, %rdi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_hermes_bap_seek
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_hermes_write_reg
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_hermes_write_reg
	leal	(%rbx,%rbx), %ecx
	addl	$-2, %ecx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_hermes_write_bytes
	movq	_HERMES_CMD_ACCESS@GOTPCREL(%rip), %rax
	movq	_HERMES_CMD_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hermes_docmd_wait              ## TAILCALL
LBB0_1:
	movq	_HERMES_DATA1@GOTPCREL(%rip), %rax
	testl	%ebx, %ebx
	jne	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HERMES_DATA1,4,2               ## @HERMES_DATA1
	.comm	_HERMES_DATA0,4,2               ## @HERMES_DATA0
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HERMES_CMD_ACCESS,4,2          ## @HERMES_CMD_ACCESS
	.comm	_HERMES_CMD_WRITE,4,2           ## @HERMES_CMD_WRITE
	.no_dead_strip	_hermes_write_ltv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hermes_write_ltv
_hermes_write_ltv:                      ; @hermes_write_ltv
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w1, #0
Lloh0:
	adrp	x8, _HERMES_DATA1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HERMES_DATA1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HERMES_DATA0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HERMES_DATA0@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	cbz	w3, LBB0_3
; %bb.1:
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x0
	ldr	w23, [x8]
	mov	w3, #0
	bl	_hermes_bap_seek
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_hermes_write_reg
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	bl	_hermes_write_reg
	lsl	w8, w22, #1
	sub	w3, w8, #2
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_hermes_write_bytes
Lloh4:
	adrp	x8, _HERMES_CMD_ACCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HERMES_CMD_ACCESS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _HERMES_CMD_WRITE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HERMES_CMD_WRITE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	mov	x2, x19
	mov	x3, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hermes_docmd_wait
LBB0_3:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HERMES_DATA1,4,2               ; @HERMES_DATA1
	.comm	_HERMES_DATA0,4,2               ; @HERMES_DATA0
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HERMES_CMD_ACCESS,4,2          ; @HERMES_CMD_ACCESS
	.comm	_HERMES_CMD_WRITE,4,2           ; @HERMES_CMD_WRITE
	.no_dead_strip	_hermes_write_ltv
.subsections_via_symbols
