	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_gpio_irq_domain_alloc
_meson_gpio_irq_domain_alloc:           ## @meson_gpio_irq_domain_alloc
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	(%rdi), %r15
	xorl	%edi, %edi
	cmpl	$1, %edx
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_meson_gpio_irq_domain_translate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	-56(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_meson_gpio_irq_request_channel
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %ecx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_meson_gpio_irq_allocate_gic_irq
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	-56(%rbp), %rdx
	movq	-40(%rbp), %r8
	movq	_meson_gpio_irq_chip@GOTPCREL(%rip), %rcx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_irq_domain_set_hwirq_and_chip
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %ebx
	movq	-40(%rbp), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_meson_gpio_irq_release_channel
LBB0_7:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate gic irq %u\n"

	.comm	_meson_gpio_irq_chip,4,2        ## @meson_gpio_irq_chip
	.no_dead_strip	_meson_gpio_irq_domain_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_gpio_irq_domain_alloc
_meson_gpio_irq_domain_alloc:           ; @meson_gpio_irq_domain_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x22, x3
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0]
	cmp	w2, #1
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_2:
	add	x2, sp, #24
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_meson_gpio_irq_domain_translate
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	x1, [sp, #24]
	add	x2, sp, #16
	mov	x0, x19
	bl	_meson_gpio_irq_request_channel
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	x8, [sp, #16]
	ldr	w2, [x8]
	ldr	w3, [sp, #12]
	mov	x0, x21
	mov	x1, x20
	bl	_meson_gpio_irq_allocate_gic_irq
	tbnz	w0, #31, LBB0_6
; %bb.5:
	ldp	x4, x2, [sp, #16]
Lloh3:
	adrp	x3, _meson_gpio_irq_chip@GOTPAGE
Lloh4:
	ldr	x3, [x3, _meson_gpio_irq_chip@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	bl	_irq_domain_set_hwirq_and_chip
	mov	w22, #0
	b	LBB0_7
LBB0_6:
	mov	x22, x0
	ldr	x8, [sp, #16]
	ldr	w1, [x8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	x1, [sp, #16]
	mov	x0, x19
	bl	_meson_gpio_irq_release_channel
LBB0_7:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate gic irq %u\n"

	.comm	_meson_gpio_irq_chip,4,2        ; @meson_gpio_irq_chip
	.no_dead_strip	_meson_gpio_irq_domain_alloc
.subsections_via_symbols
