	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c64xx_eint_gpio_init
_s3c64xx_eint_gpio_init:                ## @s3c64xx_eint_gpio_init
	.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
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	cmpl	$0, 4(%r15)
	je	LBB0_1
## %bb.2:
	movl	(%r15), %eax
	testl	%eax, %eax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movq	8(%r15), %rbx
	xorl	%r14d, %r14d
	movq	_EINT_TYPE_GPIO@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
	addq	$32, %rbx
	cmpl	%eax, %r14d
	jae	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	cmpq	(%r13), %rcx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%rbx), %edi
	callq	_fls
	movl	24(%rbx), %edi
	movl	%eax, %esi
	movq	_s3c64xx_gpio_irqd_ops@GOTPCREL(%rip), %rdx
	movq	%rbx, %rcx
	callq	_irq_domain_add_linear
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_25
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	movl	(%r15), %eax
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_3:
	xorl	%r12d, %r12d
LBB0_9:
	movq	_domains@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	movq	%r15, 8(%rax)
	movl	(%r15), %r8d
	testl	%r8d, %r8d
	je	LBB0_23
## %bb.13:
	movq	8(%r15), %rcx
	xorl	%r10d, %r10d
	cmpl	$1, %r8d
	jne	LBB0_14
LBB0_20:
	testb	$1, %r8b
	je	LBB0_23
## %bb.21:
	movq	(%rcx), %rdx
	movq	_EINT_TYPE_GPIO@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_23
## %bb.22:
	movq	16(%rcx), %rcx
	movq	(%rax), %rdx
	movl	%r10d, %esi
	movq	%rcx, (%rdx,%rsi,8)
LBB0_23:
	movl	4(%r15), %edi
	movq	_s3c64xx_eint_gpio_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdx
	callq	_irq_set_chained_handler_and_data
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_25:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%r10d, %r10d
	movq	_EINT_TYPE_GPIO@GOTPCREL(%rip), %r9
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$64, %rcx
	addl	$-2, %edi
	je	LBB0_20
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rsi
	cmpq	(%r9), %rsi
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	16(%rcx), %rsi
	movq	(%rax), %rbx
	movl	%r10d, %edx
	incl	%r10d
	movq	%rsi, (%rbx,%rdx,8)
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	32(%rcx), %rdx
	cmpq	(%r9), %rdx
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	48(%rcx), %rdx
	movq	(%rax), %rsi
	movl	%r10d, %ebx
	incl	%r10d
	movq	%rdx, (%rsi,%rbx,8)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq number not available\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EINT_TYPE_GPIO,8,3             ## @EINT_TYPE_GPIO
	.comm	_s3c64xx_gpio_irqd_ops,4,2      ## @s3c64xx_gpio_irqd_ops
L_.str.1:                               ## @.str.1
	.asciz	"gpio irq domain add failed\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_domains,4,2                    ## @domains
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_s3c64xx_eint_gpio_irq,4,2      ## @s3c64xx_eint_gpio_irq
	.no_dead_strip	_s3c64xx_eint_gpio_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c64xx_eint_gpio_init
_s3c64xx_eint_gpio_init:                ; @s3c64xx_eint_gpio_init
	.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
	ldr	x20, [x0, #16]
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.2:
	mov	w24, #0
	mov	w21, #0
	ldr	x22, [x19, #8]
Lloh0:
	adrp	x25, _EINT_TYPE_GPIO@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EINT_TYPE_GPIO@GOTPAGEOFF]
Lloh2:
	adrp	x23, _s3c64xx_gpio_irqd_ops@GOTPAGE
Lloh3:
	ldr	x23, [x23, _s3c64xx_gpio_irqd_ops@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	add	x22, x22, #32
	cmp	w24, w8
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22, #8]
	bl	_fls
	mov	x1, x0
	ldr	w0, [x22, #24]
	mov	x2, x23
	mov	x3, x22
	bl	_irq_domain_add_linear
	str	x0, [x22, #16]
	cbz	x0, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	ldr	w8, [x19]
	b	LBB0_3
LBB0_7:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_8:
	mov	w21, #0
LBB0_9:
Lloh8:
	adrp	x8, _domains@GOTPAGE
Lloh9:
	ldr	x8, [x8, _domains@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_struct_size
	mov	x1, x0
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_devm_kzalloc
	cbz	x0, LBB0_16
; %bb.10:
	mov	x2, x0
	str	x19, [x0, #8]
	ldr	w8, [x19]
	cbz	w8, LBB0_15
; %bb.11:
	mov	w9, #0
	ldr	x10, [x19, #8]
	add	x10, x10, #16
Lloh14:
	adrp	x11, _EINT_TYPE_GPIO@GOTPAGE
Lloh15:
	ldr	x11, [x11, _EINT_TYPE_GPIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x10, x10, #32
	subs	w8, w8, #1
	b.eq	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x10, #-16]
	ldr	x13, [x11]
	cmp	x12, x13
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x12, [x10]
	ldr	x13, [x2]
	str	x12, [x13, w9, uxtw #3]
	add	w9, w9, #1
	b	LBB0_12
LBB0_15:
	ldr	w0, [x19, #4]
Lloh16:
	adrp	x8, _s3c64xx_eint_gpio_irq@GOTPAGE
Lloh17:
	ldr	x8, [x8, _s3c64xx_eint_gpio_irq@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_irq_set_chained_handler_and_data
	mov	w0, #0
	b	LBB0_19
LBB0_16:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh23:
	adrp	x8, _ENXIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq number not available\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EINT_TYPE_GPIO,8,3             ; @EINT_TYPE_GPIO
	.comm	_s3c64xx_gpio_irqd_ops,4,2      ; @s3c64xx_gpio_irqd_ops
l_.str.1:                               ; @.str.1
	.asciz	"gpio irq domain add failed\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_domains,4,2                    ; @domains
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_s3c64xx_eint_gpio_irq,4,2      ; @s3c64xx_eint_gpio_irq
	.no_dead_strip	_s3c64xx_eint_gpio_init
.subsections_via_symbols
