	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gic_irq_domain_translate
_gic_irq_domain_translate:              ## @gic_irq_domain_translate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	16(%rsi), %edi
	callq	_is_of_node
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpl	$2, (%rbx)
	jle	LBB0_11
## %bb.2:
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	cmpq	$3, %rcx
	ja	LBB0_8
## %bb.3:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	movslq	4(%rax), %rcx
	addq	$32, %rcx
	jmp	LBB0_19
LBB0_5:
	movl	16(%rbx), %edi
	callq	_is_fwnode_irqchip
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	cmpl	$2, (%rbx)
	jne	LBB0_11
## %bb.7:
	movq	8(%rbx), %rax
	movslq	(%rax), %rcx
	movq	%rcx, (%r15)
	movl	4(%rax), %eax
	movl	%eax, (%r14)
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_WARN_ON
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_8:
	cmpl	$128, %ecx
	je	LBB0_12
## %bb.9:
	cmpl	$129, %ecx
	jne	LBB0_11
## %bb.10:
	movslq	4(%rax), %rcx
	jmp	LBB0_19
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_12:
	movslq	4(%rax), %rcx
	cmpq	$16, %rcx
	jl	LBB0_18
## %bb.13:
	movq	_EPPI_BASE_INTID@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	addq	%rdx, %rcx
	addq	$-16, %rcx
	jmp	LBB0_19
LBB0_14:
	movslq	4(%rax), %rcx
LBB0_18:
	addq	$16, %rcx
	jmp	LBB0_19
LBB0_15:
	movslq	4(%rax), %rdx
	movq	_ESPI_BASE_INTID@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_16:
	movslq	4(%rax), %rdx
	movq	_EPPI_BASE_INTID@GOTPCREL(%rip), %rcx
LBB0_17:
	movslq	(%rcx), %rcx
	addq	%rdx, %rcx
LBB0_19:
	movq	%rcx, (%r15)
	movq	_IRQ_TYPE_SENSE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rax), %ecx
	movl	%ecx, (%r14)
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	movl	$0, %edi
	cmpl	(%rdx), %ecx
	jne	LBB0_21
## %bb.20:
	xorl	%edi, %edi
	cmpl	$128, (%rax)
	setne	%dil
LBB0_21:
	callq	_WARN_ON
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ESPI_BASE_INTID,4,2            ## @ESPI_BASE_INTID
	.comm	_EPPI_BASE_INTID,4,2            ## @EPPI_BASE_INTID
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ## @IRQ_TYPE_SENSE_MASK
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.no_dead_strip	_gic_irq_domain_translate
.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_translate
_gic_irq_domain_translate:              ; @gic_irq_domain_translate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x3
	mov	x20, x2
	mov	x21, x1
	ldr	w0, [x1, #16]
	bl	_is_of_node
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #2
	b.le	LBB0_11
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	w9, [x8]
	cmp	w9, #3
	b.hi	LBB0_8
; %bb.3:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
	ldrsw	x9, [x8, #4]
	add	x9, x9, #32
	b	LBB0_19
LBB0_5:
	ldr	w0, [x21, #16]
	bl	_is_fwnode_irqchip
	cbz	x0, LBB0_11
; %bb.6:
	ldr	w8, [x21]
	cmp	w8, #2
	b.ne	LBB0_11
; %bb.7:
	ldr	x8, [x21, #8]
	ldp	w9, w8, [x8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	str	x9, [x20]
	str	w8, [x19]
Lloh2:
	adrp	x9, _IRQ_TYPE_NONE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	b	LBB0_22
LBB0_8:
	cmp	w9, #128
	b.eq	LBB0_12
; %bb.9:
	cmp	w9, #129
	b.ne	LBB0_11
; %bb.10:
	ldrsw	x9, [x8, #4]
	b	LBB0_19
LBB0_11:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_23
LBB0_12:
	ldrsw	x9, [x8, #4]
	cmp	w9, #16
	b.lt	LBB0_15
; %bb.13:
Lloh8:
	adrp	x10, _EPPI_BASE_INTID@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EPPI_BASE_INTID@GOTPAGEOFF]
Lloh10:
	ldrsw	x10, [x10]
	add	x9, x10, x9
	sub	x9, x9, #16
	b	LBB0_19
LBB0_14:
	ldrsw	x9, [x8, #4]
LBB0_15:
	add	x9, x9, #16
	b	LBB0_19
LBB0_16:
	ldrsw	x9, [x8, #4]
Lloh11:
	adrp	x10, _ESPI_BASE_INTID@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ESPI_BASE_INTID@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
	ldrsw	x9, [x8, #4]
Lloh13:
	adrp	x10, _EPPI_BASE_INTID@GOTPAGE
Lloh14:
	ldr	x10, [x10, _EPPI_BASE_INTID@GOTPAGEOFF]
LBB0_18:
	ldrsw	x10, [x10]
	add	x9, x10, x9
LBB0_19:
	str	x9, [x20]
	ldr	w9, [x8, #8]
Lloh15:
	adrp	x10, _IRQ_TYPE_SENSE_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IRQ_TYPE_SENSE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	and	w9, w10, w9
	str	w9, [x19]
Lloh18:
	adrp	x10, _IRQ_TYPE_NONE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_21
; %bb.20:
	ldr	w8, [x8]
	cmp	w8, #128
	cset	w0, ne
	b	LBB0_22
LBB0_21:
	mov	w0, #0
LBB0_22:
	bl	_WARN_ON
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ESPI_BASE_INTID,4,2            ; @ESPI_BASE_INTID
	.comm	_EPPI_BASE_INTID,4,2            ; @EPPI_BASE_INTID
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ; @IRQ_TYPE_SENSE_MASK
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.no_dead_strip	_gic_irq_domain_translate
.subsections_via_symbols
