	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gic_irq_domain_select
_gic_irq_domain_select:                 ## @gic_irq_domain_select
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	cmpq	(%r14), %rdi
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	callq	_is_of_node
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$4, 8(%rbx)
	jl	LBB0_9
## %bb.5:
	movq	16(%rbx), %rax
	cmpl	$1, (%rax)
	jne	LBB0_9
## %bb.6:
	cmpl	$0, 12(%rax)
	je	LBB0_9
## %bb.7:
	movq	_gic_data@GOTPCREL(%rip), %rcx
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movslq	4(%rax), %rax
	movl	(%rcx,%rax,4), %edi
	callq	_partition_get_domain
	cmpq	%r14, %rax
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	_gic_data@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
LBB0_10:
	sete	%al
	jmp	LBB0_11
LBB0_3:
	movb	$1, %al
LBB0_11:
	movzbl	%al, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gic_data,16,3                  ## @gic_data
	.no_dead_strip	_gic_irq_domain_select
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gic_irq_domain_select
_gic_irq_domain_select:                 ; @gic_irq_domain_select
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x1]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	mov	x20, x1
	bl	_is_of_node
	cbz	w0, LBB0_8
; %bb.2:
	ldr	w9, [x20, #8]
Lloh0:
	adrp	x8, _gic_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gic_data@GOTPAGEOFF]
	cmp	w9, #4
	b.lt	LBB0_5
; %bb.3:
	ldr	x9, [x20, #16]
	ldr	w10, [x9]
	cmp	w10, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	w11, [x9, #12]
	ldr	x10, [x8, #8]
	cmp	w11, #0
	ccmp	x10, #0, #4, ne
	b.ne	LBB0_10
LBB0_5:
	ldr	x8, [x8]
	cmp	x8, x19
LBB0_6:
	cset	w0, eq
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldrsw	x8, [x9, #4]
	ldr	w0, [x10, x8, lsl #2]
	bl	_partition_get_domain
	cmp	x0, x19
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_gic_data,16,3                  ; @gic_data
	.no_dead_strip	_gic_irq_domain_select
.subsections_via_symbols
