	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msgqueue_0137c63d_cmd_queue
_msgqueue_0137c63d_cmd_queue:           ## @msgqueue_0137c63d_cmd_queue
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_msgqueue_0137c63d
	cmpl	$128, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_5
## %bb.2:
	movq	_MSGQUEUE_0137C63D_COMMAND_QUEUE_HPQ@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movq	_MSGQUEUE_0137C63D_COMMAND_QUEUE_LPQ@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	(%rcx), %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_nvkm_error
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSGQUEUE_0137C63D_COMMAND_QUEUE_HPQ,8,3 ## @MSGQUEUE_0137C63D_COMMAND_QUEUE_HPQ
	.comm	_MSGQUEUE_0137C63D_COMMAND_QUEUE_LPQ,8,3 ## @MSGQUEUE_0137C63D_COMMAND_QUEUE_LPQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid command queue!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_msgqueue_0137c63d_cmd_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msgqueue_0137c63d_cmd_queue
_msgqueue_0137c63d_cmd_queue:           ; @msgqueue_0137c63d_cmd_queue
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_msgqueue_0137c63d
	cmp	w19, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w19, #129
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MSGQUEUE_0137C63D_COMMAND_QUEUE_HPQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSGQUEUE_0137C63D_COMMAND_QUEUE_HPQ@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _MSGQUEUE_0137C63D_COMMAND_QUEUE_LPQ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MSGQUEUE_0137C63D_COMMAND_QUEUE_LPQ@GOTPAGEOFF]
LBB0_4:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nvkm_error
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSGQUEUE_0137C63D_COMMAND_QUEUE_HPQ,8,3 ; @MSGQUEUE_0137C63D_COMMAND_QUEUE_HPQ
	.comm	_MSGQUEUE_0137C63D_COMMAND_QUEUE_LPQ,8,3 ; @MSGQUEUE_0137C63D_COMMAND_QUEUE_LPQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid command queue!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_msgqueue_0137c63d_cmd_queue
.subsections_via_symbols
