	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_cec_irq_handler
_s5p_cec_irq_handler:                   ## @s5p_cec_irq_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_s5p_cec_get_status
	movl	%eax, %r14d
	movl	20(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_CEC_STATUS_TX_DONE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.1:
	movq	_CEC_STATUS_TX_NACK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.2:
	movl	20(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	_STATE_NACK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_CEC_STATUS_TX_ERROR@GOTPCREL(%rip), %rax
	movl	20(%rbx), %edi
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	movq	_STATE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_dbg
	movq	_STATE_DONE@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_s5p_clr_pending_tx
LBB0_7:
	movq	_CEC_STATUS_RX_DONE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_14
## %bb.8:
	movq	_CEC_STATUS_RX_ERROR@GOTPCREL(%rip), %rax
	movl	20(%rbx), %edi
	testl	%r14d, (%rax)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_s5p_cec_rx_reset
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_dbg
	movq	(%rbx), %rax
	movq	_STATE_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	movl	20(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_dbg
LBB0_12:
	movq	_STATE_BUSY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	sarl	$24, %r14d
	movl	%r14d, 8(%rbx)
	movq	_CEC_RX_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	12(%rbx), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_s5p_cec_get_rx_buf
	movq	_STATE_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_13:
	movq	%rbx, %rdi
	callq	_s5p_cec_enable_rx
	movq	%rbx, %rdi
	callq	_s5p_clr_pending_rx
LBB0_14:
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq received\n"

	.comm	_CEC_STATUS_TX_DONE,4,2         ## @CEC_STATUS_TX_DONE
	.comm	_CEC_STATUS_TX_NACK,4,2         ## @CEC_STATUS_TX_NACK
L_.str.1:                               ## @.str.1
	.asciz	"CEC_STATUS_TX_NACK set\n"

	.comm	_STATE_NACK,8,3                 ## @STATE_NACK
	.comm	_CEC_STATUS_TX_ERROR,4,2        ## @CEC_STATUS_TX_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"CEC_STATUS_TX_ERROR set\n"

	.comm	_STATE_ERROR,8,3                ## @STATE_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"CEC_STATUS_TX_DONE\n"

	.comm	_STATE_DONE,8,3                 ## @STATE_DONE
	.comm	_CEC_STATUS_RX_DONE,4,2         ## @CEC_STATUS_RX_DONE
	.comm	_CEC_STATUS_RX_ERROR,4,2        ## @CEC_STATUS_RX_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"CEC_STATUS_RX_ERROR set\n"

L_.str.5:                               ## @.str.5
	.asciz	"CEC_STATUS_RX_DONE set\n"

	.comm	_STATE_IDLE,8,3                 ## @STATE_IDLE
L_.str.6:                               ## @.str.6
	.asciz	"Buffer overrun (worker did not process previous message)\n"

	.comm	_STATE_BUSY,8,3                 ## @STATE_BUSY
	.comm	_CEC_RX_STATUS_OK,4,2           ## @CEC_RX_STATUS_OK
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.no_dead_strip	_s5p_cec_irq_handler
.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
_s5p_cec_irq_handler:                   ; @s5p_cec_irq_handler
	.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
	mov	x0, x1
	bl	_s5p_cec_get_status
	mov	x20, x0
	ldr	w0, [x19, #20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x8, _CEC_STATUS_TX_DONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CEC_STATUS_TX_DONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.1:
Lloh5:
	adrp	x8, _CEC_STATUS_TX_NACK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CEC_STATUS_TX_NACK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19, #20]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
Lloh10:
	adrp	x8, _STATE_NACK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STATE_NACK@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh12:
	adrp	x8, _CEC_STATUS_TX_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CEC_STATUS_TX_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w0, [x19, #20]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
Lloh17:
	adrp	x8, _STATE_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STATE_ERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
Lloh21:
	adrp	x8, _STATE_DONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STATE_DONE@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	mov	x0, x19
	bl	_s5p_clr_pending_tx
LBB0_7:
Lloh23:
	adrp	x8, _CEC_STATUS_RX_DONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CEC_STATUS_RX_DONE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.8:
Lloh26:
	adrp	x8, _CEC_STATUS_RX_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CEC_STATUS_RX_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w0, [x19, #20]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_s5p_cec_rx_reset
	b	LBB0_13
LBB0_10:
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19]
Lloh33:
	adrp	x9, _STATE_IDLE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _STATE_IDLE@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x19, #20]
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
LBB0_12:
Lloh38:
	adrp	x8, _STATE_BUSY@GOTPAGE
Lloh39:
	ldr	x8, [x8, _STATE_BUSY@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	str	x8, [x19]
	asr	w1, w20, #24
	str	w1, [x19, #8]
Lloh41:
	adrp	x8, _CEC_RX_STATUS_OK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CEC_RX_STATUS_OK@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	w2, [x19, #12]
	mov	x0, x19
	bl	_s5p_cec_get_rx_buf
Lloh44:
	adrp	x8, _STATE_DONE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _STATE_DONE@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_13:
	mov	x0, x19
	bl	_s5p_cec_enable_rx
	mov	x0, x19
	bl	_s5p_clr_pending_rx
LBB0_14:
Lloh47:
	adrp	x8, _IRQ_WAKE_THREAD@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IRQ_WAKE_THREAD@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq received\n"

	.comm	_CEC_STATUS_TX_DONE,4,2         ; @CEC_STATUS_TX_DONE
	.comm	_CEC_STATUS_TX_NACK,4,2         ; @CEC_STATUS_TX_NACK
l_.str.1:                               ; @.str.1
	.asciz	"CEC_STATUS_TX_NACK set\n"

	.comm	_STATE_NACK,8,3                 ; @STATE_NACK
	.comm	_CEC_STATUS_TX_ERROR,4,2        ; @CEC_STATUS_TX_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"CEC_STATUS_TX_ERROR set\n"

	.comm	_STATE_ERROR,8,3                ; @STATE_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"CEC_STATUS_TX_DONE\n"

	.comm	_STATE_DONE,8,3                 ; @STATE_DONE
	.comm	_CEC_STATUS_RX_DONE,4,2         ; @CEC_STATUS_RX_DONE
	.comm	_CEC_STATUS_RX_ERROR,4,2        ; @CEC_STATUS_RX_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"CEC_STATUS_RX_ERROR set\n"

l_.str.5:                               ; @.str.5
	.asciz	"CEC_STATUS_RX_DONE set\n"

	.comm	_STATE_IDLE,8,3                 ; @STATE_IDLE
l_.str.6:                               ; @.str.6
	.asciz	"Buffer overrun (worker did not process previous message)\n"

	.comm	_STATE_BUSY,8,3                 ; @STATE_BUSY
	.comm	_CEC_RX_STATUS_OK,4,2           ; @CEC_RX_STATUS_OK
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.no_dead_strip	_s5p_cec_irq_handler
.subsections_via_symbols
