	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venus_hfi_create               ## -- Begin function venus_hfi_create
	.p2align	4, 0x90
_venus_hfi_create:                      ## @venus_hfi_create
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	%r14, 8(%rbx)
	movl	$1, (%rbx)
	movq	%rbx, 16(%r14)
	movq	_venus_hfi_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_ENC_ROTATION_CAPABILITY@GOTPCREL(%rip), %rax
	movq	_ENC_SCALING_CAPABILITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ENC_DEINTERLACE_CAPABILITY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_DEC_MULTI_STREAM_CAPABILITY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	%rbx, %rdi
	callq	_venus_interface_queues_init
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	addq	$8, %r14
	movq	%rbx, %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_venus_hfi_ops,4,2              ## @venus_hfi_ops
	.comm	_ENC_ROTATION_CAPABILITY,4,2    ## @ENC_ROTATION_CAPABILITY
	.comm	_ENC_SCALING_CAPABILITY,4,2     ## @ENC_SCALING_CAPABILITY
	.comm	_ENC_DEINTERLACE_CAPABILITY,4,2 ## @ENC_DEINTERLACE_CAPABILITY
	.comm	_DEC_MULTI_STREAM_CAPABILITY,4,2 ## @DEC_MULTI_STREAM_CAPABILITY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venus_hfi_create               ; -- Begin function venus_hfi_create
	.p2align	2
_venus_hfi_create:                      ; @venus_hfi_create
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, x0, #16
	bl	_mutex_init
	str	x20, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
	str	x19, [x20, #16]
Lloh3:
	adrp	x8, _venus_hfi_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _venus_hfi_ops@GOTPAGEOFF]
	mov	x21, x20
	str	x8, [x21, #8]!
Lloh5:
	adrp	x8, _ENC_ROTATION_CAPABILITY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENC_ROTATION_CAPABILITY@GOTPAGEOFF]
Lloh7:
	adrp	x9, _ENC_SCALING_CAPABILITY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ENC_SCALING_CAPABILITY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _ENC_DEINTERLACE_CAPABILITY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ENC_DEINTERLACE_CAPABILITY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _DEC_MULTI_STREAM_CAPABILITY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DEC_MULTI_STREAM_CAPABILITY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
	mov	x0, x19
	bl	_venus_interface_queues_init
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_kfree
	stp	xzr, xzr, [x21]
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_venus_hfi_ops,4,2              ; @venus_hfi_ops
	.comm	_ENC_ROTATION_CAPABILITY,4,2    ; @ENC_ROTATION_CAPABILITY
	.comm	_ENC_SCALING_CAPABILITY,4,2     ; @ENC_SCALING_CAPABILITY
	.comm	_ENC_DEINTERLACE_CAPABILITY,4,2 ; @ENC_DEINTERLACE_CAPABILITY
	.comm	_DEC_MULTI_STREAM_CAPABILITY,4,2 ; @DEC_MULTI_STREAM_CAPABILITY
.subsections_via_symbols
