	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function device_next
_device_next:                           ## @device_next
	.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
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rax
	movq	_AV_CLASS_CATEGORY_NA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_av_oformat_next
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_av_iformat_next
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rcx), %rbx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r15, %rbx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r14, %rbx
	jne	LBB0_1
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CLASS_CATEGORY_NA,8,3       ## @AV_CLASS_CATEGORY_NA
	.no_dead_strip	_device_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function device_next
_device_next:                           ; @device_next
	.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, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _AV_CLASS_CATEGORY_NA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CLASS_CATEGORY_NA@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w21, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_av_oformat_next
	cbnz	x0, LBB0_4
	b	LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	bl	_av_iformat_next
	cbz	x0, LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x22, [x8]
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	x22, x20
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	x22, x19
	b.ne	LBB0_1
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CLASS_CATEGORY_NA,8,3       ; @AV_CLASS_CATEGORY_NA
	.no_dead_strip	_device_next
.subsections_via_symbols
