	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_aes_interrupt
_s5p_aes_interrupt:                     ## @s5p_aes_interrupt
	.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	%rsi, %rdi
	callq	_platform_get_drvdata
	movq	%rax, %r12
	leaq	8(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_FCINTSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_SSS_READ
	movl	%eax, %r14d
	movq	_SSS_FCINTSTAT_BRDMAINT@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$0, %eax
	testl	%r14d, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_s5p_aes_rx
LBB0_2:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_SSS_FCINTSTAT_BTDMAINT@GOTPCREL(%rip), %r13
	movl	$0, %eax
	testl	%r14d, (%r13)
	je	LBB0_4
## %bb.3:
	movl	28(%r12), %edi
	callq	_sg_is_last
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	movq	%r12, %rdi
	callq	_s5p_aes_tx
LBB0_4:
	movq	_SSS_FCINTSTAT_HRDMAINT@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%r14d, %ecx
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	callq	_s5p_hash_rx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %ecx
	jmp	LBB0_7
LBB0_5:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_7:
	movq	_SSS_FCINTSTAT_BRDMAINT@GOTPCREL(%rip), %rax
	movl	(%r13), %r13d
	orl	(%rax), %r13d
	orl	%ecx, %r13d
	andl	%r14d, %r13d
	movq	_FCINTPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_SSS_WRITE
	movq	_SSS_FCINTSTAT_HDONEINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SSS_FCINTSTAT_HPARTINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %r15d
	orl	%eax, %r15d
	testl	%r14d, %r15d
	je	LBB0_13
## %bb.8:
	testl	%r14d, %ecx
	je	LBB0_10
## %bb.9:
	movq	_SSS_HASH_STATUS_PARTIAL_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
LBB0_10:
	testl	%r14d, %eax
	je	LBB0_12
## %bb.11:
	movq	_SSS_HASH_STATUS_MSG_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_12:
	movq	_HASH_FLAGS_OUTPUT_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	36(%r12), %rsi
	callq	_set_bit
	movq	_SSS_REG_HASH_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_s5p_hash_write
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_13:
	movl	%ebx, %eax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	js	LBB0_14
## %bb.17:
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	js	LBB0_18
## %bb.19:
	testl	%eax, %eax
	je	LBB0_23
## %bb.20:
	movq	%r12, %rdi
	callq	_s5p_sg_done
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_22
## %bb.21:
	movl	12(%r12), %esi
	movq	%r12, %rdi
	callq	_s5p_set_dma_hashdata
LBB0_22:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	16(%r12), %rdi
	xorl	%esi, %esi
	callq	_s5p_aes_complete
	leaq	32(%r12), %rdi
	callq	_tasklet_schedule
	testl	%r14d, %r15d
	jne	LBB0_31
	jmp	LBB0_32
LBB0_18:
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
LBB0_14:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_s5p_sg_done
	movl	$0, (%r12)
	movq	16(%r12), %rbx
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.15:
	movl	12(%r12), %esi
	movq	%r12, %rdi
	callq	_s5p_set_dma_hashdata
LBB0_16:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_s5p_aes_complete
	testl	%r14d, %r15d
	je	LBB0_32
LBB0_31:
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_tasklet_schedule
	jmp	LBB0_34
LBB0_23:
	cmpl	$1, %ecx
	jne	LBB0_25
## %bb.24:
	movl	28(%r12), %esi
	movq	%r12, %rdi
	callq	_s5p_set_dma_outdata
LBB0_25:
	cmpl	$1, %ebx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_27
## %bb.26:
	movl	24(%r12), %esi
	movq	%r12, %rdi
	callq	_s5p_set_dma_indata
LBB0_27:
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_29
## %bb.28:
	movl	12(%r12), %esi
	movq	%r12, %rdi
	callq	_s5p_set_dma_hashdata
LBB0_29:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r14d, %r15d
	jne	LBB0_31
LBB0_32:
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_34
## %bb.33:
	movq	_SSS_REG_HASH_CTRL_PAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSS_HASH_PAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_s5p_hash_write
LBB0_34:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FCINTSTAT,4,2                  ## @FCINTSTAT
	.comm	_SSS_FCINTSTAT_BRDMAINT,4,2     ## @SSS_FCINTSTAT_BRDMAINT
	.comm	_SSS_FCINTSTAT_BTDMAINT,4,2     ## @SSS_FCINTSTAT_BTDMAINT
	.comm	_SSS_FCINTSTAT_HRDMAINT,4,2     ## @SSS_FCINTSTAT_HRDMAINT
	.comm	_FCINTPEND,4,2                  ## @FCINTPEND
	.comm	_SSS_FCINTSTAT_HDONEINT,4,2     ## @SSS_FCINTSTAT_HDONEINT
	.comm	_SSS_FCINTSTAT_HPARTINT,4,2     ## @SSS_FCINTSTAT_HPARTINT
	.comm	_SSS_HASH_STATUS_PARTIAL_DONE,4,2 ## @SSS_HASH_STATUS_PARTIAL_DONE
	.comm	_SSS_HASH_STATUS_MSG_DONE,4,2   ## @SSS_HASH_STATUS_MSG_DONE
	.comm	_HASH_FLAGS_OUTPUT_READY,4,2    ## @HASH_FLAGS_OUTPUT_READY
	.comm	_SSS_REG_HASH_STATUS,4,2        ## @SSS_REG_HASH_STATUS
	.comm	_SSS_REG_HASH_CTRL_PAUSE,4,2    ## @SSS_REG_HASH_CTRL_PAUSE
	.comm	_SSS_HASH_PAUSE,4,2             ## @SSS_HASH_PAUSE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_s5p_aes_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_aes_interrupt
_s5p_aes_interrupt:                     ; @s5p_aes_interrupt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x0, x1
	bl	_platform_get_drvdata
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _FCINTSTAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FCINTSTAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SSS_READ
	mov	x23, x0
Lloh3:
	adrp	x25, _SSS_FCINTSTAT_BRDMAINT@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SSS_FCINTSTAT_BRDMAINT@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_s5p_aes_rx
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
Lloh5:
	adrp	x26, _SSS_FCINTSTAT_BTDMAINT@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SSS_FCINTSTAT_BTDMAINT@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w23
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x19, #28]
	bl	_sg_is_last
	cmp	x0, #0
	cset	w27, ne
	mov	x0, x19
	bl	_s5p_aes_tx
	mov	x24, x0
	b	LBB0_6
LBB0_5:
	mov	w27, #0
	mov	w24, #0
LBB0_6:
Lloh7:
	adrp	x28, _SSS_FCINTSTAT_HRDMAINT@GOTPAGE
Lloh8:
	ldr	x28, [x28, _SSS_FCINTSTAT_HRDMAINT@GOTPAGEOFF]
	ldr	w8, [x28]
	tst	w8, w23
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_s5p_hash_rx
	mov	x22, x0
	ldr	w8, [x28]
	b	LBB0_9
LBB0_8:
	mov	w22, #0
LBB0_9:
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w9, w10, w9
	orr	w8, w9, w8
	and	w25, w8, w23
Lloh9:
	adrp	x8, _FCINTPEND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FCINTPEND@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x25
	bl	_SSS_WRITE
Lloh12:
	adrp	x8, _SSS_FCINTSTAT_HDONEINT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSS_FCINTSTAT_HDONEINT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _SSS_FCINTSTAT_HPARTINT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SSS_FCINTSTAT_HPARTINT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w10, w9, w8
	ands	w26, w10, w23
	b.eq	LBB0_11
; %bb.10:
Lloh18:
	adrp	x10, _SSS_HASH_STATUS_PARTIAL_DONE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SSS_HASH_STATUS_PARTIAL_DONE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w9, w23
	csel	w9, w25, w10, eq
Lloh21:
	adrp	x10, _SSS_HASH_STATUS_MSG_DONE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SSS_HASH_STATUS_MSG_DONE@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w8, w23
	csel	w22, w9, w10, eq
Lloh24:
	adrp	x8, _HASH_FLAGS_OUTPUT_READY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HASH_FLAGS_OUTPUT_READY@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	add	x1, x19, #36
	bl	_set_bit
Lloh27:
	adrp	x8, _SSS_REG_HASH_STATUS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SSS_REG_HASH_STATUS@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_s5p_hash_write
	mov	w22, #0
LBB0_11:
	tbnz	w21, #31, LBB0_18
; %bb.12:
	tbnz	w24, #31, LBB0_17
; %bb.13:
	cbz	w27, LBB0_22
; %bb.14:
	mov	x0, x19
	bl	_s5p_sg_done
	cmp	w22, #1
	b.ne	LBB0_16
; %bb.15:
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_s5p_set_dma_hashdata
LBB0_16:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x0, [x19, #16]
	mov	w1, #0
	bl	_s5p_aes_complete
	add	x0, x19, #32
	bl	_tasklet_schedule
	cbnz	w26, LBB0_21
	b	LBB0_27
LBB0_17:
	mov	x21, x24
LBB0_18:
	mov	x0, x19
	bl	_s5p_sg_done
	str	wzr, [x19]
	ldr	x23, [x19, #16]
	cmp	w22, #1
	b.ne	LBB0_20
; %bb.19:
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_s5p_set_dma_hashdata
LBB0_20:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x23
	mov	x1, x21
	bl	_s5p_aes_complete
	cbz	w26, LBB0_27
LBB0_21:
	add	x0, x19, #4
	bl	_tasklet_schedule
	b	LBB0_29
LBB0_22:
	cmp	w24, #1
	b.eq	LBB0_30
; %bb.23:
	cmp	w21, #1
	b.eq	LBB0_31
LBB0_24:
	cmp	w22, #1
	b.ne	LBB0_26
LBB0_25:
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_s5p_set_dma_hashdata
LBB0_26:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	cbnz	w26, LBB0_21
LBB0_27:
	cmp	w22, #2
	b.ne	LBB0_29
; %bb.28:
Lloh30:
	adrp	x8, _SSS_REG_HASH_CTRL_PAUSE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SSS_REG_HASH_CTRL_PAUSE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _SSS_HASH_PAUSE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SSS_HASH_PAUSE@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_s5p_hash_write
LBB0_29:
Lloh36:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_30:
	ldr	w1, [x19, #28]
	mov	x0, x19
	bl	_s5p_set_dma_outdata
	cmp	w21, #1
	b.ne	LBB0_24
LBB0_31:
	ldr	w1, [x19, #24]
	mov	x0, x19
	bl	_s5p_set_dma_indata
	cmp	w22, #1
	b.eq	LBB0_25
	b	LBB0_26
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_FCINTSTAT,4,2                  ; @FCINTSTAT
	.comm	_SSS_FCINTSTAT_BRDMAINT,4,2     ; @SSS_FCINTSTAT_BRDMAINT
	.comm	_SSS_FCINTSTAT_BTDMAINT,4,2     ; @SSS_FCINTSTAT_BTDMAINT
	.comm	_SSS_FCINTSTAT_HRDMAINT,4,2     ; @SSS_FCINTSTAT_HRDMAINT
	.comm	_FCINTPEND,4,2                  ; @FCINTPEND
	.comm	_SSS_FCINTSTAT_HDONEINT,4,2     ; @SSS_FCINTSTAT_HDONEINT
	.comm	_SSS_FCINTSTAT_HPARTINT,4,2     ; @SSS_FCINTSTAT_HPARTINT
	.comm	_SSS_HASH_STATUS_PARTIAL_DONE,4,2 ; @SSS_HASH_STATUS_PARTIAL_DONE
	.comm	_SSS_HASH_STATUS_MSG_DONE,4,2   ; @SSS_HASH_STATUS_MSG_DONE
	.comm	_HASH_FLAGS_OUTPUT_READY,4,2    ; @HASH_FLAGS_OUTPUT_READY
	.comm	_SSS_REG_HASH_STATUS,4,2        ; @SSS_REG_HASH_STATUS
	.comm	_SSS_REG_HASH_CTRL_PAUSE,4,2    ; @SSS_REG_HASH_CTRL_PAUSE
	.comm	_SSS_HASH_PAUSE,4,2             ; @SSS_HASH_PAUSE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_s5p_aes_interrupt
.subsections_via_symbols
