	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_irq_set_type
_exynos_irq_set_type:                   ## @exynos_irq_set_type
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_irq_data_get_irq_chip
	movq	%rax, %rdi
	callq	_to_exynos_irq_chip
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_irq_data_get_irq_chip_data
	addl	$-128, %ebx
	cmpl	$5, %ebx
	jae	LBB0_1
## %bb.2:
	movq	(%rax), %r15
	addq	(%r12), %r15
	movl	(%r14), %r13d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_EXYNOS_EINT_CON_LEN@GOTPCREL(%rip), %rax
	imull	(%rax), %r13d
	movslq	%ebx, %rax
	leaq	l_switch.table.exynos_irq_set_type(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r12d
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_irq_set_handler_locked
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	addq	%r15, %rdi
	callq	_readl
	movq	_EXYNOS_EINT_CON_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	notl	%edx
	shll	%cl, %r12d
	andl	%eax, %edx
	orl	%edx, %r12d
	addq	8(%rbx), %r15
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_writel
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXYNOS_EINT_CON_LEN,4,2        ## @EXYNOS_EINT_CON_LEN
	.comm	_EXYNOS_EINT_EDGE_RISING,4,2    ## @EXYNOS_EINT_EDGE_RISING
	.comm	_EXYNOS_EINT_EDGE_FALLING,4,2   ## @EXYNOS_EINT_EDGE_FALLING
	.comm	_EXYNOS_EINT_EDGE_BOTH,4,2      ## @EXYNOS_EINT_EDGE_BOTH
	.comm	_EXYNOS_EINT_LEVEL_HIGH,4,2     ## @EXYNOS_EINT_LEVEL_HIGH
	.comm	_EXYNOS_EINT_LEVEL_LOW,4,2      ## @EXYNOS_EINT_LEVEL_LOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported external interrupt type\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.comm	_EXYNOS_EINT_CON_MASK,4,2       ## @EXYNOS_EINT_CON_MASK
	.no_dead_strip	_exynos_irq_set_type
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.exynos_irq_set_type
l_switch.table.exynos_irq_set_type:
	.quad	_EXYNOS_EINT_LEVEL_LOW
	.quad	_EXYNOS_EINT_LEVEL_HIGH
	.quad	_EXYNOS_EINT_EDGE_RISING
	.quad	_EXYNOS_EINT_EDGE_FALLING
	.quad	_EXYNOS_EINT_EDGE_BOTH

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_irq_set_type
_exynos_irq_set_type:                   ; @exynos_irq_set_type
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x20, x0
	bl	_irq_data_get_irq_chip
	bl	_to_exynos_irq_chip
	mov	x21, x0
	mov	x0, x20
	bl	_irq_data_get_irq_chip_data
	sub	w8, w22, #128
	cmp	w8, #5
	b.hs	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0]
	ldr	x10, [x21]
	add	x21, x9, x10
	ldr	w9, [x20]
Lloh0:
	adrp	x10, _EXYNOS_EINT_CON_LEN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EXYNOS_EINT_CON_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mul	w22, w9, w10
Lloh3:
	adrp	x9, l_switch.table.exynos_irq_set_type@PAGE
Lloh4:
	add	x9, x9, l_switch.table.exynos_irq_set_type@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w23, [x8]
Lloh5:
	adrp	x8, _handle_edge_irq@GOTPAGE
Lloh6:
	ldr	x8, [x8, _handle_edge_irq@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_irq_set_handler_locked
	ldr	x8, [x19, #8]
	add	x0, x8, x21
	bl	_readl
Lloh8:
	adrp	x8, _EXYNOS_EINT_CON_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXYNOS_EINT_CON_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	w8, w8, w22
	bic	w8, w0, w8
	lsl	w9, w23, w22
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
	add	x1, x8, x21
	bl	_writel
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EXYNOS_EINT_CON_LEN,4,2        ; @EXYNOS_EINT_CON_LEN
	.comm	_EXYNOS_EINT_EDGE_RISING,4,2    ; @EXYNOS_EINT_EDGE_RISING
	.comm	_EXYNOS_EINT_EDGE_FALLING,4,2   ; @EXYNOS_EINT_EDGE_FALLING
	.comm	_EXYNOS_EINT_EDGE_BOTH,4,2      ; @EXYNOS_EINT_EDGE_BOTH
	.comm	_EXYNOS_EINT_LEVEL_HIGH,4,2     ; @EXYNOS_EINT_LEVEL_HIGH
	.comm	_EXYNOS_EINT_LEVEL_LOW,4,2      ; @EXYNOS_EINT_LEVEL_LOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported external interrupt type\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.comm	_EXYNOS_EINT_CON_MASK,4,2       ; @EXYNOS_EINT_CON_MASK
	.no_dead_strip	_exynos_irq_set_type
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.exynos_irq_set_type
l_switch.table.exynos_irq_set_type:
	.quad	_EXYNOS_EINT_LEVEL_LOW
	.quad	_EXYNOS_EINT_LEVEL_HIGH
	.quad	_EXYNOS_EINT_EDGE_RISING
	.quad	_EXYNOS_EINT_EDGE_FALLING
	.quad	_EXYNOS_EINT_EDGE_BOTH

.subsections_via_symbols
