	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c24xx_irq_map
_s3c24xx_irq_map:                       ## @s3c24xx_irq_map
	.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, %r15
	movl	%esi, %r8d
	movq	(%rdi), %r14
	movq	8(%r14), %r13
	leaq	(%rdx,%rdx,4), %r12
	movq	%r14, 32(%r13,%r12,8)
	movq	%rdx, (%r13,%r12,8)
	movl	8(%r13,%r12,8), %esi
	leal	-128(%rsi), %edx
	cmpl	$3, %edx
	ja	LBB0_13
## %bb.1:
	leaq	(,%r12,8), %rdi
	addq	%r13, %rdi
	movq	24(%r14), %rbx
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_10:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.11:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_s3c_irq_level_chip@GOTPCREL(%rip), %rsi
	jmp	LBB0_12
LBB0_13:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_14
LBB0_2:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_s3c_irq_eint0t4@GOTPCREL(%rip), %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.3:
	xorl	%eax, %eax
	movl	%r8d, %ebx
	callq	_soc_is_s3c2412
	movl	%ebx, %r8d
	movq	_s3c_irq_eint0t4@GOTPCREL(%rip), %rsi
	cmpq	$3, %r15
	ja	LBB0_5
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_16
LBB0_5:
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_s3c_irqext_chip@GOTPCREL(%rip), %rsi
LBB0_12:
	movl	%r8d, %edi
	movl	%r8d, %ebx
	callq	_irq_set_chip_and_handler
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_irq_set_chip_data
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_6:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_s3c_irq_level_chip@GOTPCREL(%rip), %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	jne	LBB0_16
## %bb.7:
	movl	16(%r14), %eax
	movq	_S3C2416_SRCPND2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
LBB0_16:
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r8d, %edi
	movl	%r8d, %ebx
	callq	_irq_set_chip_and_handler
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_irq_set_chip_data
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_23
LBB0_17:
	leaq	8(,%r12,8), %rax
	addq	%r13, %rax
	cmpl	$128, (%rax)
	je	LBB0_23
## %bb.18:
	movslq	12(%r13,%r12,8), %rsi
	cmpq	$32, %rsi
	jl	LBB0_20
## %bb.19:
	leaq	L_.str.1(%rip), %rdi
LBB0_14:
                                        ## kill: def $esi killed $esi killed $rsi
LBB0_15:
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_24
LBB0_20:
	movq	8(%rdx), %r8
	leaq	(%rsi,%rsi,4), %rax
	movq	%r14, 24(%r8,%rax,8)
	movl	$1, %edi
	movl	%r15d, %ecx
	shlq	%cl, %rdi
	orq	%rdi, 16(%r8,%rax,8)
	movl	(%rdx), %edi
	callq	_irq_find_mapping
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:
	movq	_s3c_irq_demux@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_irq_set_chained_handler
	jmp	LBB0_23
LBB0_8:
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_9:
	movq	_s3c_irq_chip@GOTPCREL(%rip), %rsi
	movl	%r8d, %edi
	movl	%r8d, %ebx
	callq	_irq_set_chip_and_handler
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_irq_set_chip_data
LBB0_23:
	xorl	%eax, %eax
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	leaq	12(,%r12,8), %rax
	addq	%r13, %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_24
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_s3c_irqext_chip,4,2            ## @s3c_irqext_chip
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.comm	_s3c_irq_eint0t4,4,2            ## @s3c_irq_eint0t4
	.comm	_S3C2416_SRCPND2,4,2            ## @S3C2416_SRCPND2
	.comm	_s3c_irq_level_chip,4,2         ## @s3c_irq_level_chip
	.comm	_s3c_irq_chip,4,2               ## @s3c_irq_chip
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq-s3c24xx: unsupported irqtype %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"irq-s3c24xx: parent irq %lu is out of range\n"

L_.str.2:                               ## @.str.2
	.asciz	"irq-s3c24xx: could not find mapping for parent irq %lu\n"

	.comm	_s3c_irq_demux,4,2              ## @s3c_irq_demux
	.no_dead_strip	_s3c24xx_irq_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c24xx_irq_map
_s3c24xx_irq_map:                       ; @s3c24xx_irq_map
	.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	x20, x1
	ldr	x22, [x0]
	ldr	x24, [x22, #8]
	mov	w8, #40
	madd	x21, x2, x8, x24
	str	x22, [x21, #32]
	str	x2, [x21]
	mov	x25, x21
	ldr	w1, [x25, #8]!
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.1:
	mov	x19, x2
	mov	w0, #0
	ldr	x23, [x22, #24]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _handle_level_irq@GOTPAGE
Lloh3:
	ldr	x8, [x8, _handle_level_irq@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	cbz	x23, LBB0_21
; %bb.3:
Lloh5:
	adrp	x1, _s3c_irq_level_chip@GOTPAGE
Lloh6:
	ldr	x1, [x1, _s3c_irq_level_chip@GOTPAGEOFF]
	b	LBB0_14
LBB0_4:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_24
LBB0_5:
	cbz	x23, LBB0_8
; %bb.6:
	bl	_soc_is_s3c2412
	cmp	x19, #3
	b.hi	LBB0_13
; %bb.7:
	cbz	w0, LBB0_13
LBB0_8:
Lloh9:
	adrp	x1, _s3c_irq_eint0t4@GOTPAGE
Lloh10:
	ldr	x1, [x1, _s3c_irq_eint0t4@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	cbnz	x23, LBB0_11
; %bb.10:
	ldr	w8, [x22, #16]
Lloh11:
	adrp	x9, _S3C2416_SRCPND2@GOTPAGE
Lloh12:
	ldr	x9, [x9, _S3C2416_SRCPND2@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_20
LBB0_11:
Lloh14:
	adrp	x1, _s3c_irq_level_chip@GOTPAGE
Lloh15:
	ldr	x1, [x1, _s3c_irq_level_chip@GOTPAGEOFF]
LBB0_12:
Lloh16:
	adrp	x8, _handle_edge_irq@GOTPAGE
Lloh17:
	ldr	x8, [x8, _handle_edge_irq@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_irq_set_chip_and_handler
	mov	x0, x20
	mov	x1, x21
	bl	_irq_set_chip_data
	cbnz	x23, LBB0_15
	b	LBB0_22
LBB0_13:
Lloh19:
	adrp	x8, _handle_edge_irq@GOTPAGE
Lloh20:
	ldr	x8, [x8, _handle_edge_irq@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x1, _s3c_irqext_chip@GOTPAGE
Lloh23:
	ldr	x1, [x1, _s3c_irqext_chip@GOTPAGEOFF]
LBB0_14:
	mov	x0, x20
	bl	_irq_set_chip_and_handler
	mov	x0, x20
	mov	x1, x21
	bl	_irq_set_chip_data
LBB0_15:
	ldr	w8, [x25]
	cmp	w8, #128
	b.eq	LBB0_22
; %bb.16:
	mov	w8, #40
	madd	x20, x19, x8, x24
	ldrsw	x1, [x20, #12]!
	cmp	w1, #32
	b.lt	LBB0_18
; %bb.17:
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_24
LBB0_18:
	ldr	x8, [x23, #8]
	mov	w9, #40
	madd	x8, x1, x9, x8
	mov	w9, #1
	lsl	x9, x9, x19
	ldr	x10, [x8, #16]
	orr	x9, x10, x9
	stp	x9, x22, [x8, #16]
	ldr	w0, [x23]
	bl	_irq_find_mapping
	cbz	w0, LBB0_23
; %bb.19:
Lloh26:
	adrp	x8, _s3c_irq_demux@GOTPAGE
Lloh27:
	ldr	x8, [x8, _s3c_irq_demux@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_irq_set_chained_handler
	b	LBB0_22
LBB0_20:
Lloh29:
	adrp	x8, _handle_edge_irq@GOTPAGE
Lloh30:
	ldr	x8, [x8, _handle_edge_irq@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
LBB0_21:
Lloh32:
	adrp	x1, _s3c_irq_chip@GOTPAGE
Lloh33:
	ldr	x1, [x1, _s3c_irq_chip@GOTPAGEOFF]
	mov	x0, x20
	bl	_irq_set_chip_and_handler
	mov	x0, x20
	mov	x1, x21
	bl	_irq_set_chip_data
LBB0_22:
	mov	w0, #0
	b	LBB0_25
LBB0_23:
	ldr	w1, [x20]
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_24:
	bl	_pr_err
Lloh36:
	adrp	x8, _EINVAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_25:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_25-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_s3c_irqext_chip,4,2            ; @s3c_irqext_chip
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.comm	_s3c_irq_eint0t4,4,2            ; @s3c_irq_eint0t4
	.comm	_S3C2416_SRCPND2,4,2            ; @S3C2416_SRCPND2
	.comm	_s3c_irq_level_chip,4,2         ; @s3c_irq_level_chip
	.comm	_s3c_irq_chip,4,2               ; @s3c_irq_chip
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq-s3c24xx: unsupported irqtype %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"irq-s3c24xx: parent irq %lu is out of range\n"

l_.str.2:                               ; @.str.2
	.asciz	"irq-s3c24xx: could not find mapping for parent irq %lu\n"

	.comm	_s3c_irq_demux,4,2              ; @s3c_irq_demux
	.no_dead_strip	_s3c24xx_irq_map
.subsections_via_symbols
