	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_hwdevice_ctx_create         ## -- Begin function av_hwdevice_ctx_create
	.p2align	4, 0x90
_av_hwdevice_ctx_create:                ## @av_hwdevice_ctx_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_av_hwdevice_ctx_alloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	(%rax), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_4
## %bb.5:
	movq	%r13, %rsi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	*%r8
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_av_hwdevice_ctx_init
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_7:
	movl	%eax, %r15d
	leaq	-48(%rbp), %rdi
	callq	_av_buffer_unref
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, (%r14)
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENOSYS,4,2                     ## @ENOSYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_hwdevice_ctx_create         ; -- Begin function av_hwdevice_ctx_create
	.p2align	2
_av_hwdevice_ctx_create:                ; @av_hwdevice_ctx_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x0
	mov	x0, x1
	bl	_av_hwdevice_ctx_alloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x0, [x0]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	blr	x8
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_av_hwdevice_ctx_init
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	w21, #0
	b	LBB0_9
LBB0_5:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_8:
	mov	x21, x0
	add	x0, sp, #8
	bl	_av_buffer_unref
	mov	x20, #0
LBB0_9:
	str	x20, [x19]
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENOSYS,4,2                     ; @ENOSYS
.subsections_via_symbols
