	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mbigen_domain_translate
_mbigen_domain_translate:               ## @mbigen_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
	jne	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	callq	_is_acpi_device_node
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:
	cmpl	$2, (%rbx)
	jne	LBB0_8
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	movq	_MAXIMUM_IRQ_PIN_NUM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	ja	LBB0_8
## %bb.4:
	movq	_RESERVED_IRQ_PER_MBIGEN_CHIP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jb	LBB0_8
## %bb.5:
	movq	%rcx, (%r15)
	movq	8(%rax), %rax
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_IRQ_TYPE_LEVEL_HIGH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAXIMUM_IRQ_PIN_NUM,8,3        ## @MAXIMUM_IRQ_PIN_NUM
	.comm	_RESERVED_IRQ_PER_MBIGEN_CHIP,8,3 ## @RESERVED_IRQ_PER_MBIGEN_CHIP
	.comm	_IRQ_TYPE_EDGE_RISING,8,3       ## @IRQ_TYPE_EDGE_RISING
	.comm	_IRQ_TYPE_LEVEL_HIGH,8,3        ## @IRQ_TYPE_LEVEL_HIGH
	.no_dead_strip	_mbigen_domain_translate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mbigen_domain_translate
_mbigen_domain_translate:               ; @mbigen_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
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x21, #16]
	bl	_is_acpi_device_node
	cbz	x0, LBB0_6
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, #2
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x21, #8]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _MAXIMUM_IRQ_PIN_NUM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAXIMUM_IRQ_PIN_NUM@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _RESERVED_IRQ_PER_MBIGEN_CHIP@GOTPAGE
Lloh4:
	ldr	x11, [x11, _RESERVED_IRQ_PER_MBIGEN_CHIP@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #0, ls
	b.lo	LBB0_6
; %bb.4:
	str	x9, [x20]
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x9, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _IRQ_TYPE_LEVEL_HIGH@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IRQ_TYPE_LEVEL_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAXIMUM_IRQ_PIN_NUM,8,3        ; @MAXIMUM_IRQ_PIN_NUM
	.comm	_RESERVED_IRQ_PER_MBIGEN_CHIP,8,3 ; @RESERVED_IRQ_PER_MBIGEN_CHIP
	.comm	_IRQ_TYPE_EDGE_RISING,8,3       ; @IRQ_TYPE_EDGE_RISING
	.comm	_IRQ_TYPE_LEVEL_HIGH,8,3        ; @IRQ_TYPE_LEVEL_HIGH
	.no_dead_strip	_mbigen_domain_translate
.subsections_via_symbols
