	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_fbdev_get_device_list       ## -- Begin function ff_fbdev_get_device_list
	.p2align	4, 0x90
_ff_fbdev_get_device_list:              ## @ff_fbdev_get_device_list
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -72(%rbp)
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_ff_fbdev_default_device
	testq	%rbx, %rbx
	je	LBB0_26
## %bb.1:
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	leaq	16(%rbx), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	L_.str(%rip), %r15
	leaq	-60(%rbp), %rbx
	movq	_O_RDWR@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rbx
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
	cmpl	$32, %r13d
	je	LBB0_23
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$12, %esi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	callq	_snprintf
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_avpriv_open
	testl	%eax, %eax
	js	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r14d
	movq	_FBIOGET_VSCREENINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	leaq	-128(%rbp), %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_FBIOGET_FSCREENINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	leaq	-120(%rbp), %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$16, %edi
	callq	_av_mallocz
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_av_strdup
	movq	-72(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	-120(%rbp), %rdi
	callq	_av_strdup
	movq	-72(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	-72(%rbp), %rdx
	cmpq	$0, 8(%rdx)
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%rdx)
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_av_dynarray_add_nofree
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	js	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rax
	decq	%rax
	movq	%rax, 8(%rcx)
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %edi
	callq	_close
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %ebx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_av_err2str
	xorl	%edi, %edi
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rcx
	movl	%eax, %r8d
	callq	_av_log
	jmp	LBB0_3
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rdi
	callq	_av_freep
	movq	-72(%rbp), %rdi
	callq	_av_freep
	leaq	-72(%rbp), %rdi
	callq	_av_freep
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %edi
	callq	_close
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	jns	LBB0_4
	jmp	LBB0_24
LBB0_23:
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.25:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/fb%d"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Could not open framebuffer device '%s': %s\n"

	.comm	_FBIOGET_VSCREENINFO,4,2        ## @FBIOGET_VSCREENINFO
	.comm	_FBIOGET_FSCREENINFO,4,2        ## @FBIOGET_FSCREENINFO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_fbdev_get_device_list       ; -- Begin function ff_fbdev_get_device_list
	.p2align	2
_ff_fbdev_get_device_list:              ; @ff_fbdev_get_device_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	str	xzr, [sp, #32]
	bl	_ff_fbdev_default_device
	cbz	x19, LBB0_24
; %bb.1:
	stp	x0, x19, [sp, #16]              ; 16-byte Folded Spill
	mov	w25, #0
	mov	w21, #0
	add	x8, x19, #16
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh3:
	adrp	x28, _O_RDWR@GOTPAGE
Lloh4:
	ldr	x28, [x28, _O_RDWR@GOTPAGEOFF]
Lloh5:
	adrp	x27, _errno@GOTPAGE
Lloh6:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
Lloh7:
	adrp	x24, _ENOENT@GOTPAGE
Lloh8:
	ldr	x24, [x24, _ENOENT@GOTPAGEOFF]
Lloh9:
	adrp	x23, l_.str@PAGE
Lloh10:
	add	x23, x23, l_.str@PAGEOFF
Lloh11:
	adrp	x20, _FBIOGET_VSCREENINFO@GOTPAGE
Lloh12:
	ldr	x20, [x20, _FBIOGET_VSCREENINFO@GOTPAGEOFF]
Lloh13:
	adrp	x19, _FBIOGET_FSCREENINFO@GOTPAGE
Lloh14:
	ldr	x19, [x19, _FBIOGET_FSCREENINFO@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_close
	tbnz	w25, #31, LBB0_22
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	cmp	w21, #32
	b.eq	LBB0_21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #60
	mov	w1, #12
	mov	x2, x23
	mov	x3, x21
	bl	_snprintf
	ldr	w1, [x28]
	add	x0, sp, #60
	bl	_avpriv_open
	tbnz	w0, #31, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	ldr	w1, [x20]
	add	x2, sp, #48
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x19]
	add	x2, sp, #40
	mov	x0, x26
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #16
	bl	_av_mallocz
	str	x0, [sp, #32]
	cbz	x0, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #60
	bl	_av_strdup
	ldr	x8, [sp, #32]
	str	x0, [x8, #8]
	ldr	x0, [sp, #40]
	bl	_av_strdup
	ldr	x8, [sp, #32]
	str	x0, [x8]
	ldr	x2, [sp, #32]
	ldr	x8, [x2, #8]
	cbz	x8, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x2]
	cbz	x8, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_av_dynarray_add_nofree
	mov	x25, x0
	tbnz	w0, #31, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	cbz	x1, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #32]
	ldr	x0, [x8, #8]
	bl	_strcmp
	cbnz	w0, LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x9]
	sub	x8, x8, #1
	str	x8, [x9, #8]
	b	LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x27]
	bl	_AVERROR
	mov	x26, x0
	ldr	w0, [x24]
	bl	_AVERROR
	cmp	w26, w0
	b.eq	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x24
	mov	x24, x27
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w27, [x8]
	mov	x0, x26
	bl	_av_err2str
	mov	x4, x0
	add	x3, sp, #60
	mov	x0, #0
	mov	x1, x27
	mov	x27, x24
	mov	x24, x22
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	b	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x25, x0
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x8, #8
	bl	_av_freep
	ldr	x0, [sp, #32]
	bl	_av_freep
	add	x0, sp, #32
	bl	_av_freep
	b	LBB0_2
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_close
	b	LBB0_3
LBB0_21:
	mov	w25, #0
LBB0_22:
	ldr	x8, [sp, #72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.23:
	mov	x0, x25
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_24:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	x8, [sp, #72]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_AVERROR
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/fb%d"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Could not open framebuffer device '%s': %s\n"

	.comm	_FBIOGET_VSCREENINFO,4,2        ; @FBIOGET_VSCREENINFO
	.comm	_FBIOGET_FSCREENINFO,4,2        ; @FBIOGET_FSCREENINFO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
