	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_cec_irq_handler_thread
_s5p_cec_irq_handler_thread:            ## @s5p_cec_irq_handler_thread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	16(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movl	12(%rbx), %edi
	movq	_CEC_TX_STATUS_MAX_RETRIES@GOTPCREL(%rip), %rax
	movq	_CEC_TX_STATUS_NACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	jmp	LBB0_3
LBB0_6:
	movl	12(%rbx), %edi
	movq	_CEC_TX_STATUS_MAX_RETRIES@GOTPCREL(%rip), %rax
	movq	_CEC_TX_STATUS_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	jmp	LBB0_4
LBB0_2:
	movl	12(%rbx), %edi
	movq	_CEC_TX_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_3:
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
LBB0_4:
	callq	_cec_transmit_done
	movq	_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_8:
	cmpl	$130, 4(%rbx)
	jne	LBB0_10
LBB0_9:
	movl	12(%rbx), %edi
	leaq	8(%rbx), %rsi
	callq	_cec_received_msg
	movq	_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_10:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	cmpl	$130, 4(%rbx)
	je	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq processing thread\n"

	.comm	_CEC_TX_STATUS_OK,4,2           ## @CEC_TX_STATUS_OK
	.comm	_STATE_IDLE,8,3                 ## @STATE_IDLE
	.comm	_CEC_TX_STATUS_MAX_RETRIES,4,2  ## @CEC_TX_STATUS_MAX_RETRIES
	.comm	_CEC_TX_STATUS_NACK,4,2         ## @CEC_TX_STATUS_NACK
	.comm	_CEC_TX_STATUS_ERROR,4,2        ## @CEC_TX_STATUS_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"state set to busy, this should not occur here\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_s5p_cec_irq_handler_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_cec_irq_handler_thread
_s5p_cec_irq_handler_thread:            ; @s5p_cec_irq_handler_thread
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w0, [x1, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh4:
	adrp	x8, _CEC_TX_STATUS_MAX_RETRIES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CEC_TX_STATUS_MAX_RETRIES@GOTPAGEOFF]
	ldr	w0, [x19, #12]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _CEC_TX_STATUS_NACK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CEC_TX_STATUS_NACK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #0
	mov	w3, #1
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x8, _CEC_TX_STATUS_MAX_RETRIES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CEC_TX_STATUS_MAX_RETRIES@GOTPAGEOFF]
	ldr	w0, [x19, #12]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _CEC_TX_STATUS_ERROR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CEC_TX_STATUS_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #1
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #12]
Lloh16:
	adrp	x8, _CEC_TX_STATUS_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CEC_TX_STATUS_OK@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
LBB0_5:
	mov	w4, #0
	mov	w5, #0
LBB0_6:
	bl	_cec_transmit_done
Lloh19:
	adrp	x8, _STATE_IDLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STATE_IDLE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19, #16]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_8:
	ldr	w8, [x19, #4]
	cmp	w8, #130
	b.ne	LBB0_10
; %bb.9:
	ldr	w0, [x19, #12]
	add	x1, x19, #8
	bl	_cec_received_msg
Lloh24:
	adrp	x8, _STATE_IDLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STATE_IDLE@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	w8, [x19, #4]
LBB0_10:
Lloh27:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq processing thread\n"

	.comm	_CEC_TX_STATUS_OK,4,2           ; @CEC_TX_STATUS_OK
	.comm	_STATE_IDLE,8,3                 ; @STATE_IDLE
	.comm	_CEC_TX_STATUS_MAX_RETRIES,4,2  ; @CEC_TX_STATUS_MAX_RETRIES
	.comm	_CEC_TX_STATUS_NACK,4,2         ; @CEC_TX_STATUS_NACK
	.comm	_CEC_TX_STATUS_ERROR,4,2        ; @CEC_TX_STATUS_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"state set to busy, this should not occur here\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_s5p_cec_irq_handler_thread
.subsections_via_symbols
