	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_derivation
_test_derivation:                       ## @test_derivation
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	(%rdi), %r13
	movq	_AV_HWDEVICE_TYPE_NONE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_av_hwdevice_iterate_types
	movl	%eax, %r14d
	xorl	%eax, %eax
	cmpl	(%rbx), %r14d
	je	LBB0_17
## %bb.1:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_av_hwdevice_iterate_types
	movl	%eax, %r14d
	movq	%r12, %rbx
	cmpl	(%r12), %eax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	movl	%r14d, %edi
	callq	_av_hwdevice_get_type_name
	movq	%rax, %r13
	leaq	-56(%rbp), %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_av_hwdevice_ctx_create_derived
	testl	%eax, %eax
	js	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdx
	movq	(%rdx), %rax
	movl	(%rax), %ecx
	cmpl	%r14d, %ecx
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %esi
	cmpl	%esi, %r14d
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-56(%rbp), %rdi
	callq	_av_buffer_unref
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-64(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_av_hwdevice_ctx_create_derived
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax
	movq	(%rax), %rax
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpq	(%r15), %rax
	jne	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.5(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	leaq	-56(%rbp), %rdi
	callq	_av_buffer_unref
	leaq	-64(%rbp), %rdi
	callq	_av_buffer_unref
	jmp	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_16
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_16
LBB0_13:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_16:
	leaq	-56(%rbp), %rdi
	callq	_av_buffer_unref
	leaq	-64(%rbp), %rdi
	callq	_av_buffer_unref
	movl	$-1, %eax
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_HWDEVICE_TYPE_NONE,4,2      ## @AV_HWDEVICE_TYPE_NONE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to derive %s -> %s: %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Device derived as type %d has type %d.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Derivation of %s from itself succeeded but did not return the same device.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Derivation %s to %s succeeded, but derivation back again failed: %d.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Derivation %s to %s succeeded, but derivation back again did not return the original device.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Successfully tested derivation %s -> %s.\n"

	.no_dead_strip	_test_derivation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_derivation
_test_derivation:                       ; @test_derivation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #32]
	ldr	x25, [x0]
Lloh0:
	adrp	x26, _AV_HWDEVICE_TYPE_NONE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AV_HWDEVICE_TYPE_NONE@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_av_hwdevice_iterate_types
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_18
LBB0_2:
	mov	x21, x0
Lloh2:
	adrp	x27, _stderr@GOTPAGE
Lloh3:
	ldr	x27, [x27, _stderr@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
Lloh6:
	adrp	x23, l_.str.5@PAGE
Lloh7:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	stp	x24, x0, [sp, #8]
	str	x19, [sp]
	mov	x0, x8
	mov	x1, x22
	bl	_fprintf
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_av_hwdevice_iterate_types
	mov	x21, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_av_hwdevice_get_type_name
	mov	x24, x0
	add	x0, sp, #40
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	bl	_av_hwdevice_ctx_create_derived
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [sp, #40]
	ldr	x8, [x2]
	ldr	w9, [x8]
	cmp	w9, w21
	b.ne	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x25]
	cmp	w21, w1
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x8, x25
	b.ne	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #40
	bl	_av_buffer_unref
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #32
	mov	w3, #0
	bl	_av_hwdevice_ctx_create_derived
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #32]
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	w0, [x27]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	stp	x19, x24, [sp]
	mov	x1, x23
	bl	_fprintf
	add	x0, sp, #40
	bl	_av_buffer_unref
	add	x0, sp, #32
	bl	_av_buffer_unref
	b	LBB0_4
LBB0_13:
	ldr	w0, [x27]
	stp	x21, x9, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_14:
	ldr	w0, [x27]
	str	x19, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_15:
	ldr	w8, [x27]
	stp	x24, x0, [sp, #8]
	str	x19, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	b	LBB0_17
LBB0_16:
	stp	x19, x24, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_17:
	bl	_fprintf
	add	x0, sp, #40
	bl	_av_buffer_unref
	add	x0, sp, #32
	bl	_av_buffer_unref
	mov	w0, #-1
LBB0_18:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_HWDEVICE_TYPE_NONE,4,2      ; @AV_HWDEVICE_TYPE_NONE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to derive %s -> %s: %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Device derived as type %d has type %d.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Derivation of %s from itself succeeded but did not return the same device.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Derivation %s to %s succeeded, but derivation back again failed: %d.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Derivation %s to %s succeeded, but derivation back again did not return the original device.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Successfully tested derivation %s -> %s.\n"

	.no_dead_strip	_test_derivation
.subsections_via_symbols
