	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function partition_domain_alloc
_partition_domain_alloc:                ## @partition_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r13
	xorl	%edi, %edi
	cmpl	$1, %edx
	setne	%dil
	callq	_BUG_ON
	movq	8(%r13), %rax
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%r13), %r12
	movq	-48(%rbp), %rdi
	movl	12(%r12), %esi
	callq	_set_bit
	movl	8(%r12), %edi
	callq	_irq_desc_get_irq
	movq	_partition_handle_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movq	%r12, %rdx
	callq	_irq_set_chained_handler_and_data
	movq	-48(%rbp), %rsi
	shlq	$2, %rsi
	addq	(%r12), %rsi
	movl	%r14d, %edi
	callq	_irq_set_percpu_devid_partition
	movq	-48(%rbp), %rdx
	movq	_handle_percpu_devid_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	_partition_irq_chip@GOTPCREL(%rip), %rcx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%r12, %r8
	callq	_irq_domain_set_info
	movq	_IRQ_NOAUTOEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_irq_set_status_flags
LBB0_2:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_partition_handle_irq,4,2       ## @partition_handle_irq
	.comm	_partition_irq_chip,4,2         ## @partition_irq_chip
	.comm	_handle_percpu_devid_irq,4,2    ## @handle_percpu_devid_irq
	.comm	_IRQ_NOAUTOEN,4,2               ## @IRQ_NOAUTOEN
	.no_dead_strip	_partition_domain_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function partition_domain_alloc
_partition_domain_alloc:                ; @partition_domain_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x19, x1
	mov	x21, x0
	cmp	w2, #1
	cset	w0, ne
	bl	_BUG_ON
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x21
	mov	x1, x20
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x22, [x21]
	ldr	x0, [sp, #8]
	ldr	w1, [x22, #12]
	bl	_set_bit
	ldr	w0, [x22, #8]
	bl	_irq_desc_get_irq
Lloh0:
	adrp	x8, _partition_handle_irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _partition_handle_irq@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_irq_set_chained_handler_and_data
	ldr	x8, [x22]
	ldr	x9, [sp, #8]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	bl	_irq_set_percpu_devid_partition
	ldr	x2, [sp, #8]
Lloh3:
	adrp	x8, _handle_percpu_devid_irq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _handle_percpu_devid_irq@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
Lloh6:
	adrp	x3, _partition_irq_chip@GOTPAGE
Lloh7:
	ldr	x3, [x3, _partition_irq_chip@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	mov	x4, x22
	mov	x6, #0
	mov	x7, #0
	bl	_irq_domain_set_info
Lloh8:
	adrp	x8, _IRQ_NOAUTOEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_NOAUTOEN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_irq_set_status_flags
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_partition_handle_irq,4,2       ; @partition_handle_irq
	.comm	_partition_irq_chip,4,2         ; @partition_irq_chip
	.comm	_handle_percpu_devid_irq,4,2    ; @handle_percpu_devid_irq
	.comm	_IRQ_NOAUTOEN,4,2               ; @IRQ_NOAUTOEN
	.no_dead_strip	_partition_domain_alloc
.subsections_via_symbols
