	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_msgqueue_new              ## -- Begin function nvkm_msgqueue_new
	.p2align	4, 0x90
_nvkm_msgqueue_new:                     ## @nvkm_msgqueue_new
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edi, %r12d
	movq	(%rsi), %r15
	cmpl	$21548523, %edi                 ## imm = 0x148CDEB
	jle	LBB0_5
## %bb.1:
	cmpl	$21548524, %r12d                ## imm = 0x148CDEC
	je	LBB0_4
## %bb.2:
	cmpl	$22859582, %r12d                ## imm = 0x15CCF3E
	je	LBB0_4
## %bb.3:
	cmpl	$23581283, %r12d                ## imm = 0x167D263
	jne	LBB0_10
LBB0_4:
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%r14, %rdx
	callq	_msgqueue_0148cdec_new
	jmp	LBB0_8
LBB0_5:
	cmpl	$20429989, %r12d                ## imm = 0x137BCA5
	je	LBB0_9
## %bb.6:
	cmpl	$20432445, %r12d                ## imm = 0x137C63D
	jne	LBB0_10
## %bb.7:
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%r14, %rdx
	callq	_msgqueue_0137c63d_new
	jmp	LBB0_8
LBB0_9:
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%r14, %rdx
	callq	_msgqueue_0137bca5_new
LBB0_8:
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_12
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_nvkm_debug
	movq	(%r14), %rax
	movl	%r12d, (%rax)
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_nvkm_error
	testl	%ebx, %ebx
	jne	LBB0_12
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unhandled firmware version 0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"firmware version: 0x%08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_msgqueue_new              ; -- Begin function nvkm_msgqueue_new
	.p2align	2
_nvkm_msgqueue_new:                     ; @nvkm_msgqueue_new
	.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, x0
	ldr	x21, [x1]
	mov	w8, #52715
	movk	w8, #328, lsl #16
	cmp	w0, w8
	b.le	LBB0_5
; %bb.1:
	mov	w8, #52716
	movk	w8, #328, lsl #16
	cmp	w20, w8
	b.eq	LBB0_4
; %bb.2:
	mov	w8, #53054
	movk	w8, #348, lsl #16
	cmp	w20, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w8, #53859
	movk	w8, #359, lsl #16
	cmp	w20, w8
	b.ne	LBB0_9
LBB0_4:
	mov	x0, x1
	mov	x1, x2
	mov	x2, x19
	bl	_msgqueue_0148cdec_new
	mov	x22, x0
	cbnz	w22, LBB0_11
	b	LBB0_10
LBB0_5:
	mov	w8, #48293
	movk	w8, #311, lsl #16
	cmp	w20, w8
	b.eq	LBB0_8
; %bb.6:
	mov	w8, #50749
	movk	w8, #311, lsl #16
	cmp	w20, w8
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x1
	mov	x1, x2
	mov	x2, x19
	bl	_msgqueue_0137c63d_new
	mov	x22, x0
	cbnz	w22, LBB0_11
	b	LBB0_10
LBB0_8:
	mov	x0, x1
	mov	x1, x2
	mov	x2, x19
	bl	_msgqueue_0137bca5_new
	mov	x22, x0
	cbnz	w22, LBB0_11
	b	LBB0_10
LBB0_9:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_nvkm_error
	cbnz	w22, LBB0_11
LBB0_10:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_nvkm_debug
	ldr	x8, [x19]
	str	w20, [x8]
LBB0_11:
	mov	x0, x22
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unhandled firmware version 0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"firmware version: 0x%08x\n"

.subsections_via_symbols
