	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_partition_create_desc          ## -- Begin function partition_create_desc
	.p2align	4, 0x90
_partition_create_desc:                 ## @partition_create_desc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	cmpl	$0, 12(%r8)
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpl	$0, 8(%r14)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_BUG_ON
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdx
	addq	$32, %rdx
	movups	(%r14), %xmm0
	movups	%xmm0, 32(%rax)
	movq	_partition_domain_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_partition_domain_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rcx
	callq	_irq_domain_create_linear
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %r14
	movq	%rax, 24(%rbx)
	movl	%r12d, %edi
	callq	_BITS_TO_LONGS
	movl	(%r15), %edx
	movl	%eax, %edi
	movl	$8, %esi
	callq	_kcalloc
	movl	%eax, 20(%rbx)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_irq_domain_remove
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_irq_to_desc
	movl	%eax, 16(%rbx)
	movl	%r12d, (%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_partition_domain_free,4,2      ## @partition_domain_free
	.comm	_partition_domain_alloc,4,2     ## @partition_domain_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_partition_create_desc          ; -- Begin function partition_create_desc
	.p2align	2
_partition_create_desc:                 ; @partition_create_desc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x23, x0
	ldr	w8, [x4, #12]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x24, #8]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_BUG_ON
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #48
	bl	_kzalloc
	mov	x22, x0
	cbz	x0, LBB0_9
; %bb.4:
	add	x2, x22, #32
	ldr	q0, [x24]
	str	q0, [x22, #32]
Lloh2:
	adrp	x8, _partition_domain_free@GOTPAGE
Lloh3:
	ldr	x8, [x8, _partition_domain_free@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _partition_domain_alloc@GOTPAGE
Lloh6:
	ldr	x9, [x9, _partition_domain_alloc@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #32]
	mov	x0, x23
	mov	x1, x20
	mov	x3, x22
	bl	_irq_domain_create_linear
	cbz	x0, LBB0_7
; %bb.5:
	mov	x23, x0
	str	x0, [x22, #24]
	mov	x0, x20
	bl	_BITS_TO_LONGS
	ldr	w2, [x25]
	mov	w1, #8
	bl	_kcalloc
	str	w0, [x22, #20]
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x23
	bl	_irq_domain_remove
LBB0_7:
	mov	x0, x22
	bl	_kfree
	mov	x22, #0
	b	LBB0_9
LBB0_8:
	mov	x0, x21
	bl	_irq_to_desc
	str	w0, [x22, #16]
	str	w20, [x22]
	str	x19, [x22, #8]
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_partition_domain_free,4,2      ; @partition_domain_free
	.comm	_partition_domain_alloc,4,2     ; @partition_domain_alloc
.subsections_via_symbols
