	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cros_ec_lpc_mec_write_bytes
_cros_ec_lpc_mec_write_bytes:           ## @cros_ec_lpc_mec_write_bytes
	.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	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %ebx
	callq	_cros_ec_lpc_mec_in_range
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	je	LBB0_2
## %bb.4:
	movq	_MEC_IO_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movq	_EC_HOST_CMD_REGION0@GOTPCREL(%rip), %rax
	subq	(%rax), %rsi
	movl	%r15d, %edx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cros_ec_lpc_io_bytes_mec       ## TAILCALL
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%ebx, %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cros_ec_lpc_write_bytes        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MEC_IO_WRITE,4,2               ## @MEC_IO_WRITE
	.comm	_EC_HOST_CMD_REGION0,8,3        ## @EC_HOST_CMD_REGION0
	.no_dead_strip	_cros_ec_lpc_mec_write_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cros_ec_lpc_mec_write_bytes
_cros_ec_lpc_mec_write_bytes:           ; @cros_ec_lpc_mec_write_bytes
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_cros_ec_lpc_mec_in_range
	tbnz	w0, #31, LBB0_3
; %bb.1:
	cbz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _MEC_IO_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEC_IO_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w8, w21
Lloh3:
	adrp	x9, _EC_HOST_CMD_REGION0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EC_HOST_CMD_REGION0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sub	x1, x8, x9
	mov	x2, x20
	mov	x3, 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
	b	_cros_ec_lpc_io_bytes_mec
LBB0_3:
	mov	w0, #0
	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
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, 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
	b	_cros_ec_lpc_write_bytes
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MEC_IO_WRITE,4,2               ; @MEC_IO_WRITE
	.comm	_EC_HOST_CMD_REGION0,8,3        ; @EC_HOST_CMD_REGION0
	.no_dead_strip	_cros_ec_lpc_mec_write_bytes
.subsections_via_symbols
