	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_create_gru_mq_uv
_xpc_create_gru_mq_uv:                  ## @xpc_create_gru_mq_uv
	.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
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movl	%esi, %r13d
	movl	%edi, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	(%r14), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_get_order
	movl	%eax, %ebx
	movslq	%eax, %rcx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	movq	%rcx, (%r12)
	movl	$1, %r15d
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %r15
	movl	%r13d, %edi
	callq	_uv_cpu_to_blade_id
	movl	%eax, 32(%r12)
	movl	%r13d, %edi
	callq	_cpu_to_node
	movq	___GFP_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%r14), %esi
	movl	%eax, %r14d
	movq	___GFP_THISNODE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%r14d, %edi
	movl	%ebx, %edx
	callq	___alloc_pages_node
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, %rdi
	callq	_page_address
	movq	%rax, 16(%r12)
	movq	%r12, %rdi
	callq	_xpc_gru_mq_watchlist_alloc_uv
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_xpc_get_gru_mq_irq_uv
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:
	movl	24(%r12), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movq	_xpc_part@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r12), %edx
	movl	%ebx, %ecx
	negl	%ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_1:
	movq	_xpc_part@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_3:
	movq	_xpc_part@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_5:
	movq	_xpc_part@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r15d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_10:
	movl	%r13d, %edi
	callq	_uv_cpu_to_pnode
	movl	%eax, %edi
	callq	_UV_PNODE_TO_NASID
	movq	8(%r12), %rdi
	movq	16(%r12), %rsi
	movl	32(%r12), %r8d
	movl	28(%r12), %r9d
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_gru_create_message_queue
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_xpc_part@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	16(%r12), %rdi
	callq	_xp_pa
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_xp_expand_memprotect
	movq	_xpSuccess@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.21:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_EACCES@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	24(%r12), %edi
	xorl	%esi, %esi
	callq	_free_irq
LBB0_15:
	movq	%r12, %rdi
	callq	_xpc_release_gru_mq_irq_uv
LBB0_16:
	movq	%r12, %rdi
	callq	_xpc_gru_mq_watchlist_free_uv
LBB0_17:
	movq	16(%r12), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_free_pages
LBB0_18:
	movq	8(%r12), %rdi
	callq	_kfree
LBB0_19:
	movq	%r12, %rdi
	callq	_kfree
LBB0_20:
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_xpc_part,4,2                   ## @xpc_part
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xpc_create_gru_mq_uv() failed to kmalloc() a xpc_gru_mq_uv structure\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"xpc_create_gru_mq_uv() failed to kmalloc() a gru_message_queue_desc structure\n"

	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	___GFP_THISNODE,4,2             ## @__GFP_THISNODE
L_.str.2:                               ## @.str.2
	.asciz	"xpc_create_gru_mq_uv() failed to alloc %d bytes of memory on nid=%d for GRU mq\n"

L_.str.3:                               ## @.str.3
	.asciz	"request_irq(irq=%d) returned error=%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"gru_create_message_queue() returned error=%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.comm	_EACCES,4,2                     ## @EACCES
	.no_dead_strip	_xpc_create_gru_mq_uv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_create_gru_mq_uv
_xpc_create_gru_mq_uv:                  ; @xpc_create_gru_mq_uv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	w0, #40
	bl	_kmalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w1, [x26]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_get_order
	mov	x20, x0
Lloh2:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x8, x8, w0, sxtw
	str	x8, [x19]
	mov	w9, #1
	lsl	x21, x9, x8
	mov	x0, x22
	bl	_uv_cpu_to_blade_id
	str	w0, [x19, #32]
	mov	x0, x22
	bl	_cpu_to_node
	mov	x25, x0
	ldr	w8, [x26]
Lloh5:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, ___GFP_THISNODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___GFP_THISNODE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x2, x20
	bl	___alloc_pages_node
	cbz	x0, LBB0_9
; %bb.3:
	bl	_page_address
	str	x0, [x19, #16]
	mov	x0, x19
	bl	_xpc_gru_mq_watchlist_alloc_uv
	mov	x25, x0
	cbnz	w0, LBB0_18
; %bb.4:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_xpc_get_gru_mq_irq_uv
	mov	x25, x0
	cbnz	w0, LBB0_17
; %bb.5:
	ldr	w0, [x19, #24]
	mov	x1, x24
	mov	w2, #0
	mov	x3, x23
	mov	x4, #0
	bl	_request_irq
	cbz	w0, LBB0_10
; %bb.6:
	mov	x25, x0
Lloh11:
	adrp	x8, _xpc_part@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xpc_part@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	neg	w8, w25
	ldr	w9, [x19, #24]
	stp	x9, x8, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_16
LBB0_7:
Lloh16:
	adrp	x8, _xpc_part@GOTPAGE
Lloh17:
	ldr	x8, [x8, _xpc_part@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_21
LBB0_8:
Lloh24:
	adrp	x8, _xpc_part@GOTPAGE
Lloh25:
	ldr	x8, [x8, _xpc_part@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_20
LBB0_9:
Lloh32:
	adrp	x8, _xpc_part@GOTPAGE
Lloh33:
	ldr	x8, [x8, _xpc_part@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x21, x25, [sp]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_19
LBB0_10:
	mov	x0, x22
	bl	_uv_cpu_to_pnode
	bl	_UV_PNODE_TO_NASID
	mov	x3, x0
	ldp	x0, x1, [x19, #8]
	ldp	w5, w4, [x19, #28]
	mov	x2, x21
	bl	_gru_create_message_queue
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_12
; %bb.11:
Lloh40:
	adrp	x8, _xpc_part@GOTPAGE
Lloh41:
	ldr	x8, [x8, _xpc_part@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x8
	bl	_dev_err
Lloh45:
	adrp	x8, _EINVAL@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
	ldr	x0, [x19, #16]
	bl	_xp_pa
	mov	x1, x21
	bl	_xp_expand_memprotect
Lloh47:
	adrp	x8, _xpSuccess@GOTPAGE
Lloh48:
	ldr	x8, [x8, _xpSuccess@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
Lloh50:
	adrp	x8, _EACCES@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w25, w8
	ldr	w0, [x19, #24]
	mov	x1, #0
	bl	_free_irq
LBB0_16:
	mov	x0, x19
	bl	_xpc_release_gru_mq_irq_uv
LBB0_17:
	mov	x0, x19
	bl	_xpc_gru_mq_watchlist_free_uv
LBB0_18:
	ldr	x0, [x19, #16]
	mov	x1, x20
	bl	_free_pages
LBB0_19:
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_20:
	mov	x0, x19
	bl	_kfree
LBB0_21:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_xpc_part,4,2                   ; @xpc_part
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xpc_create_gru_mq_uv() failed to kmalloc() a xpc_gru_mq_uv structure\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"xpc_create_gru_mq_uv() failed to kmalloc() a gru_message_queue_desc structure\n"

	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	___GFP_THISNODE,4,2             ; @__GFP_THISNODE
l_.str.2:                               ; @.str.2
	.asciz	"xpc_create_gru_mq_uv() failed to alloc %d bytes of memory on nid=%d for GRU mq\n"

l_.str.3:                               ; @.str.3
	.asciz	"request_irq(irq=%d) returned error=%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"gru_create_message_queue() returned error=%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.comm	_EACCES,4,2                     ; @EACCES
	.no_dead_strip	_xpc_create_gru_mq_uv
.subsections_via_symbols
