	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function combiner_irq_translate
_combiner_irq_translate:                ## @combiner_irq_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	(%rdi), %r12
	movl	16(%rsi), %edi
	callq	_is_acpi_node
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	$1, %edi
	cmpl	$2, (%rbx)
	jne	LBB0_5
## %bb.2:
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	cmpl	(%r12), %ecx
	jge	LBB0_5
## %bb.3:
	movl	4(%rax), %eax
	movq	_IORESOURCE_IRQ_LOWEDGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.4:
	movq	_IORESOURCE_IRQ_HIGHEDGE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	testl	%eax, (%rcx)
	setne	%dil
LBB0_5:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	movq	8(%rbx), %rax
	movslq	(%rax), %rcx
	movq	%rcx, (%r15)
	movl	4(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_IRQ_LOWEDGE,4,2     ## @IORESOURCE_IRQ_LOWEDGE
	.comm	_IORESOURCE_IRQ_HIGHEDGE,4,2    ## @IORESOURCE_IRQ_HIGHEDGE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_combiner_irq_translate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function combiner_irq_translate
_combiner_irq_translate:                ; @combiner_irq_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	x22, [x0]
	ldr	w0, [x1, #16]
	bl	_is_acpi_node
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #2
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	w9, [x8]
	ldr	w10, [x22]
	cmp	w9, w10
	b.ge	LBB0_4
; %bb.3:
	ldr	w8, [x8, #4]
Lloh0:
	adrp	x9, _IORESOURCE_IRQ_LOWEDGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IORESOURCE_IRQ_LOWEDGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_4:
	mov	w0, #1
	bl	_WARN_ON
	cbz	x0, LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x9, _IORESOURCE_IRQ_HIGHEDGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IORESOURCE_IRQ_HIGHEDGE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_5
LBB0_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]
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IRQ_LOWEDGE,4,2     ; @IORESOURCE_IRQ_LOWEDGE
	.comm	_IORESOURCE_IRQ_HIGHEDGE,4,2    ; @IORESOURCE_IRQ_HIGHEDGE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_combiner_irq_translate
.subsections_via_symbols
