	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5p_cec_get_rx_buf             ## -- Begin function s5p_cec_get_rx_buf
	.p2align	4, 0x90
_s5p_cec_get_rx_buf:                    ## @s5p_cec_get_rx_buf
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r15
	leaq	-96(%rbp), %rbx
	xorl	%r14d, %r14d
	movq	-104(%rbp), %r13                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	movq	_S5P_CEC_RX_BUFF0@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	addq	%r14, %rdi
	callq	_readb
	movl	%eax, (%r15,%r14)
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_sprintf
	addq	$4, %r14
	addq	$2, %rbx
	decq	%r13
	jne	LBB0_2
LBB0_3:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-96(%rbp), %rcx
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_dev_dbg
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_S5P_CEC_RX_BUFF0,8,3           ## @S5P_CEC_RX_BUFF0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02x "

L_.str.1:                               ## @.str.1
	.asciz	"cec-rx: cec size(%d): %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5p_cec_get_rx_buf             ; -- Begin function s5p_cec_get_rx_buf
	.p2align	2
_s5p_cec_get_rx_buf:                    ; @s5p_cec_get_rx_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x24, #0
	mov	x22, sp
Lloh3:
	adrp	x25, _S5P_CEC_RX_BUFF0@GOTPAGE
Lloh4:
	ldr	x25, [x25, _S5P_CEC_RX_BUFF0@GOTPAGEOFF]
	mov	x26, x19
Lloh5:
	adrp	x23, l_.str@PAGE
Lloh6:
	add	x23, x23, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x25]
	add	x8, x8, x9
	add	x0, x24, x8
	bl	_readb
	mov	x2, x0
	str	w0, [x20, x24]
	mov	x0, x22
	mov	x1, x23
	bl	_sprintf
	add	x24, x24, #4
	add	x22, x22, #2
	subs	x26, x26, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, sp
	mov	x2, x19
	bl	_dev_dbg
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_CEC_RX_BUFF0,8,3           ; @S5P_CEC_RX_BUFF0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02x "

l_.str.1:                               ; @.str.1
	.asciz	"cec-rx: cec size(%d): %s"

.subsections_via_symbols
