	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hs_ucode_load_blob             ## -- Begin function hs_ucode_load_blob
	.p2align	4, 0x90
_hs_ucode_load_blob:                    ## @hs_ucode_load_blob
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rdx, %rsi
	xorl	%edx, %edx
	callq	_nvkm_acr_load_firmware
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movl	(%rbx), %eax
	cmpl	$991761648, %eax                ## imm = 0x3B1D14F0
	je	LBB0_2
## %bb.3:
	cmpl	$4318, %eax                     ## imm = 0x10DE
	jne	LBB0_7
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_2:
	movl	$1, %edx
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hs_ucode_patch_signature
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_nvkm_error
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown header for HS blob %s\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hs_ucode_load_blob             ; -- Begin function hs_ucode_load_blob
	.p2align	2
_hs_ucode_load_blob:                    ; @hs_ucode_load_blob
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	x1, x2
	mov	w2, #0
	bl	_nvkm_acr_load_firmware
	mov	x20, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x20]
	mov	w9, #5360
	movk	w9, #15133, lsl #16
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.2:
	mov	w9, #4318
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.3:
	mov	w2, #0
	b	LBB0_5
LBB0_4:
	mov	w2, #1
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_hs_ucode_patch_signature
LBB0_6:
	mov	x0, x20
	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
LBB0_7:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_nvkm_error
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown header for HS blob %s\n"

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