	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_gpio_irq_get_parent_hwirq
_uniphier_gpio_irq_get_parent_hwirq:    ## @uniphier_gpio_irq_get_parent_hwirq
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %rdx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	-36(%rbp), %eax
	movl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, -36(%rbp)
	cmpl	$12, %eax
	jge	LBB0_3
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-36(%rbp), %eax
	leal	-3(%rax), %ecx
	movl	%ecx, -36(%rbp)
	addq	$12, %rbx
	cmpl	$5, %eax
	jle	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, %r12d
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	cmpl	%r14d, %r15d
	ja	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%r15d, %eax
	cmpl	%r14d, %eax
	jbe	LBB0_6
## %bb.5:
	subl	%r15d, %r14d
	addl	%r12d, %r14d
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socionext,interrupt-ranges"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_uniphier_gpio_irq_get_parent_hwirq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_gpio_irq_get_parent_hwirq
_uniphier_gpio_irq_get_parent_hwirq:    ; @uniphier_gpio_irq_get_parent_hwirq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_get_property
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [sp, #12]
	asr	w9, w8, #2
	str	w9, [sp, #12]
	cmp	w8, #12
	b.lt	LBB0_5
; %bb.2:
	mov	x20, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	w0, [x20, #4]
	bl	_be32_to_cpu
	mov	x22, x0
	ldr	w0, [x20, #8]
	bl	_be32_to_cpu
	add	w8, w0, w21
	cmp	w21, w19
	ccmp	w8, w19, #0, ls
	b.hi	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]
	sub	w9, w8, #3
	str	w9, [sp, #12]
	add	x20, x20, #12
	cmp	w8, #5
	b.gt	LBB0_3
LBB0_5:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	add	sp, sp, #64
	ret
LBB0_9:
	sub	w8, w19, w21
	add	w0, w8, w22
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socionext,interrupt-ranges"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_uniphier_gpio_irq_get_parent_hwirq
.subsections_via_symbols
