	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xcbgrab_frame
_xcbgrab_frame:                         ## @xcbgrab_frame
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	24(%rbx), %rax
	movl	(%rax), %edx
	movq	$0, -48(%rbp)
	movq	_XCB_IMAGE_FORMAT_Z_PIXMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %ecx
	movl	12(%rbx), %r8d
	movl	8(%rbx), %r9d
	movl	(%rbx), %edi
	movl	4(%rbx), %eax
	pushq	$-1
	pushq	%rax
	callq	_xcb_get_image
	addq	$16, %rsp
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rdx
	movl	%eax, %esi
	callq	_xcb_get_image_reply
	movq	%rax, %r15
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	20(%rax), %ecx
	movl	16(%rax), %r8d
	movl	12(%rax), %r9d
	movl	8(%rax), %r10d
	movl	(%rax), %ebx
	movl	4(%rax), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	callq	_av_log
	addq	$32, %rsp
	movq	_EACCES@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_2:
	testq	%r15, %r15
	je	LBB0_3
## %bb.5:
	movq	%r15, %rdi
	callq	_xcb_get_image_data
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_xcb_get_image_data_length
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_av_new_packet
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memcpy
LBB0_7:
	movq	%r15, %rdi
	callq	_free
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_XCB_IMAGE_FORMAT_Z_PIXMAP,4,2  ## @XCB_IMAGE_FORMAT_Z_PIXMAP
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot get the image data event_error: response_type:%u error_code:%u sequence:%u resource_id:%u minor_code:%u major_code:%u.\n"

	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_xcbgrab_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xcbgrab_frame
_xcbgrab_frame:                         ; @xcbgrab_frame
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x8, [x21, #24]
	ldr	w2, [x8]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _XCB_IMAGE_FORMAT_Z_PIXMAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XCB_IMAGE_FORMAT_Z_PIXMAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w4, w3, [x21, #12]
	ldp	w6, w5, [x21, #4]
	ldr	w0, [x21]
	mov	w7, #-1
	bl	_xcb_get_image
	mov	x1, x0
	ldr	w0, [x21]
	add	x2, sp, #8
	bl	_xcb_get_image_reply
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldp	w4, w3, [x8, #16]
	ldp	w6, w5, [x8, #8]
	ldp	w8, w7, [x8]
	str	w8, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh8:
	adrp	x8, _EACCES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	b	LBB0_7
LBB0_3:
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_xcb_get_image_data
	mov	x22, x0
	mov	x0, x21
	bl	_xcb_get_image_data_length
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_av_new_packet
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19]
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
LBB0_6:
	mov	x0, x21
	bl	_free
LBB0_7:
	mov	x0, x20
	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
LBB0_8:
Lloh10:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_XCB_IMAGE_FORMAT_Z_PIXMAP,4,2  ; @XCB_IMAGE_FORMAT_Z_PIXMAP
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot get the image data event_error: response_type:%u error_code:%u sequence:%u resource_id:%u minor_code:%u major_code:%u.\n"

	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_xcbgrab_frame
.subsections_via_symbols
