	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_cmd_host2risc_v5
_s5p_mfc_cmd_host2risc_v5:              ## @s5p_mfc_cmd_host2risc_v5
	.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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	movq	_MFC_BW_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	%r15, %rbx
	movq	_S5P_FIMV_HOST2RISC_CMD@GOTPCREL(%rip), %r13
	movq	_S5P_FIMV_H2R_CMD_EMPTY@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_mfc_read
	cmpl	(%r15), %eax
	jne	LBB0_1
## %bb.4:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	_S5P_FIMV_HOST2RISC_ARG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_mfc_write
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	_S5P_FIMV_HOST2RISC_ARG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_mfc_write
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movq	_S5P_FIMV_HOST2RISC_ARG3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_mfc_write
	movq	(%rbx), %rax
	movl	12(%rax), %esi
	movq	_S5P_FIMV_HOST2RISC_ARG4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_mfc_write
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_mfc_write
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_mfc_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MFC_BW_TIMEOUT,4,2             ## @MFC_BW_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout while waiting for hardware\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_S5P_FIMV_HOST2RISC_CMD,4,2     ## @S5P_FIMV_HOST2RISC_CMD
	.comm	_S5P_FIMV_H2R_CMD_EMPTY,4,2     ## @S5P_FIMV_H2R_CMD_EMPTY
	.comm	_S5P_FIMV_HOST2RISC_ARG1,4,2    ## @S5P_FIMV_HOST2RISC_ARG1
	.comm	_S5P_FIMV_HOST2RISC_ARG2,4,2    ## @S5P_FIMV_HOST2RISC_ARG2
	.comm	_S5P_FIMV_HOST2RISC_ARG3,4,2    ## @S5P_FIMV_HOST2RISC_ARG3
	.comm	_S5P_FIMV_HOST2RISC_ARG4,4,2    ## @S5P_FIMV_HOST2RISC_ARG4
	.no_dead_strip	_s5p_mfc_cmd_host2risc_v5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_mfc_cmd_host2risc_v5
_s5p_mfc_cmd_host2risc_v5:              ; @s5p_mfc_cmd_host2risc_v5
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x22, [x24]
Lloh2:
	adrp	x8, _MFC_BW_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MFC_BW_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x22, x0, x22
Lloh5:
	adrp	x23, _S5P_FIMV_HOST2RISC_CMD@GOTPAGE
Lloh6:
	ldr	x23, [x23, _S5P_FIMV_HOST2RISC_CMD@GOTPAGEOFF]
Lloh7:
	adrp	x25, _S5P_FIMV_H2R_CMD_EMPTY@GOTPAGE
Lloh8:
	ldr	x25, [x25, _S5P_FIMV_H2R_CMD_EMPTY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	mov	x1, x22
	bl	_time_after
	cbnz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_mfc_read
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_1
; %bb.3:
	ldr	x8, [x21]
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _S5P_FIMV_HOST2RISC_ARG1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S5P_FIMV_HOST2RISC_ARG1@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mfc_write
	ldr	x8, [x21]
	ldr	w1, [x8, #4]
Lloh12:
	adrp	x8, _S5P_FIMV_HOST2RISC_ARG2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _S5P_FIMV_HOST2RISC_ARG2@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mfc_write
	ldr	x8, [x21]
	ldr	w1, [x8, #8]
Lloh15:
	adrp	x8, _S5P_FIMV_HOST2RISC_ARG3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _S5P_FIMV_HOST2RISC_ARG3@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mfc_write
	ldr	x8, [x21]
	ldr	w1, [x8, #12]
Lloh18:
	adrp	x8, _S5P_FIMV_HOST2RISC_ARG4@GOTPAGE
Lloh19:
	ldr	x8, [x8, _S5P_FIMV_HOST2RISC_ARG4@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mfc_write
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x19
	bl	_mfc_write
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mfc_err
Lloh23:
	adrp	x8, _EIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MFC_BW_TIMEOUT,4,2             ; @MFC_BW_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout while waiting for hardware\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_S5P_FIMV_HOST2RISC_CMD,4,2     ; @S5P_FIMV_HOST2RISC_CMD
	.comm	_S5P_FIMV_H2R_CMD_EMPTY,4,2     ; @S5P_FIMV_H2R_CMD_EMPTY
	.comm	_S5P_FIMV_HOST2RISC_ARG1,4,2    ; @S5P_FIMV_HOST2RISC_ARG1
	.comm	_S5P_FIMV_HOST2RISC_ARG2,4,2    ; @S5P_FIMV_HOST2RISC_ARG2
	.comm	_S5P_FIMV_HOST2RISC_ARG3,4,2    ; @S5P_FIMV_HOST2RISC_ARG3
	.comm	_S5P_FIMV_HOST2RISC_ARG4,4,2    ; @S5P_FIMV_HOST2RISC_ARG4
	.no_dead_strip	_s5p_mfc_cmd_host2risc_v5
.subsections_via_symbols
