	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pixfmt_from_pixmap_format
_pixfmt_from_pixmap_format:             ## @pixfmt_from_pixmap_format
	.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
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rax), %edi
	callq	_xcb_get_setup
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_xcb_setup_pixmap_formats
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_xcb_setup_pixmap_formats_length
	movl	$0, (%r15)
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movl	%eax, %eax
	xorl	%ecx, %ecx
	leal	-8(%r12), %edx
	leaq	LJTI0_0(%rip), %rsi
	movq	_AV_PIX_FMT_RGB565@GOTPCREL(%rip), %r10
	movq	_AV_PIX_FMT_0RGB32@GOTPCREL(%rip), %r13
	movq	_AV_PIX_FMT_0RGB@GOTPCREL(%rip), %r9
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_AV_PIX_FMT_RGB24@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r8), %edi
	movl	%edi, (%r15)
	testl	%edi, %edi
	jne	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpl	%ecx, %eax
	je	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, (%rbx,%rcx,8)
	jne	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$24, %edx
	ja	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%rsi,%rdx,4), %rdi
	addq	%rsi, %rdi
	jmpq	*%rdi
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$8, 4(%rbx,%rcx,8)
	movq	_AV_PIX_FMT_RGB8@GOTPCREL(%rip), %r8
	je	LBB0_11
	jmp	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$16, 4(%rbx,%rcx,8)
	movq	_AV_PIX_FMT_RGB555@GOTPCREL(%rip), %r8
	je	LBB0_11
	jmp	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$16, 4(%rbx,%rcx,8)
	movq	%r10, %r8
	je	LBB0_11
	jmp	LBB0_14
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx,%rcx,8), %r11d
	movq	%r13, %r8
	cmpl	$32, %r11d
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$24, %r11d
	je	LBB0_7
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$32, 4(%rbx,%rcx,8)
	movq	%r9, %r8
	je	LBB0_11
	jmp	LBB0_14
LBB0_15:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	4(%rbx,%rcx,8), %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	imull	8(%rdx), %eax
	imull	12(%rdx), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, 4(%rdx)
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_5
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_AV_PIX_FMT_0RGB,4,2            ## @AV_PIX_FMT_0RGB
	.comm	_AV_PIX_FMT_0RGB32,4,2          ## @AV_PIX_FMT_0RGB32
	.comm	_AV_PIX_FMT_RGB24,4,2           ## @AV_PIX_FMT_RGB24
	.comm	_AV_PIX_FMT_RGB565,4,2          ## @AV_PIX_FMT_RGB565
	.comm	_AV_PIX_FMT_RGB555,4,2          ## @AV_PIX_FMT_RGB555
	.comm	_AV_PIX_FMT_RGB8,4,2            ## @AV_PIX_FMT_RGB8
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mapping this pixmap format"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.no_dead_strip	_pixfmt_from_pixmap_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pixfmt_from_pixmap_format
_pixfmt_from_pixmap_format:             ; @pixfmt_from_pixmap_format
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x24, [x0]
	ldr	w0, [x24, #16]
	bl	_xcb_get_setup
	mov	x23, x0
	bl	_xcb_setup_pixmap_formats
	mov	x22, x0
	mov	x0, x23
	bl	_xcb_setup_pixmap_formats_length
	str	wzr, [x20]
	cbz	w0, LBB0_16
; %bb.1:
	add	x8, x22, #4
	sub	w9, w21, #8
Lloh0:
	adrp	x10, _AV_PIX_FMT_RGB8@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AV_PIX_FMT_RGB8@GOTPAGEOFF]
Lloh2:
	adrp	x11, _AV_PIX_FMT_RGB555@GOTPAGE
Lloh3:
	ldr	x11, [x11, _AV_PIX_FMT_RGB555@GOTPAGEOFF]
Lloh4:
	adrp	x12, _AV_PIX_FMT_RGB565@GOTPAGE
Lloh5:
	ldr	x12, [x12, _AV_PIX_FMT_RGB565@GOTPAGEOFF]
Lloh6:
	adrp	x13, lJTI0_0@PAGE
Lloh7:
	add	x13, x13, lJTI0_0@PAGEOFF
Lloh8:
	adrp	x14, _AV_PIX_FMT_0RGB32@GOTPAGE
Lloh9:
	ldr	x14, [x14, _AV_PIX_FMT_0RGB32@GOTPAGEOFF]
Lloh10:
	adrp	x15, _AV_PIX_FMT_RGB24@GOTPAGE
Lloh11:
	ldr	x15, [x15, _AV_PIX_FMT_RGB24@GOTPAGEOFF]
Lloh12:
	adrp	x16, _AV_PIX_FMT_0RGB@GOTPAGE
Lloh13:
	ldr	x16, [x16, _AV_PIX_FMT_0RGB@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x17, x14
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w17, [x17]
	str	w17, [x20]
	cbnz	w17, LBB0_18
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #8
	sub	w0, w0, #1
	cbz	w0, LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w17, [x8, #-4]
	cmp	w17, w21
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #24
	b.hi	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x17, LBB0_4
	ldrb	w1, [x13, x9]
	add	x17, x17, x1, lsl #2
	br	x17
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x8]
	mov	x17, x10
	cmp	w1, #8
	b.eq	LBB0_3
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x8]
	mov	x17, x11
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x8]
	mov	x17, x12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w1, #16
	b.eq	LBB0_3
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w17, [x8]
	cmp	w17, #32
	b.eq	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w17, #24
	b.ne	LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x17, x15
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x8]
	mov	x17, x16
	cmp	w1, #32
	b.eq	LBB0_3
	b	LBB0_4
LBB0_16:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_avpriv_report_missing_feature
Lloh16:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	w0, #0
	ldr	w8, [x8]
	ldp	w9, w10, [x24, #8]
	mul	w9, w9, w8
	mul	w9, w9, w10
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	stp	w8, w9, [x24]
	b	LBB0_17
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
                                        ; -- End function
	.comm	_AV_PIX_FMT_0RGB,4,2            ; @AV_PIX_FMT_0RGB
	.comm	_AV_PIX_FMT_0RGB32,4,2          ; @AV_PIX_FMT_0RGB32
	.comm	_AV_PIX_FMT_RGB24,4,2           ; @AV_PIX_FMT_RGB24
	.comm	_AV_PIX_FMT_RGB565,4,2          ; @AV_PIX_FMT_RGB565
	.comm	_AV_PIX_FMT_RGB555,4,2          ; @AV_PIX_FMT_RGB555
	.comm	_AV_PIX_FMT_RGB8,4,2            ; @AV_PIX_FMT_RGB8
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mapping this pixmap format"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.no_dead_strip	_pixfmt_from_pixmap_format
.subsections_via_symbols
