	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpbe_display_g_selection
_vpbe_display_g_selection:              ## @vpbe_display_g_selection
	.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	%rdx, %r14
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	24(%rax), %rax
	movq	(%rax), %r15
	movq	8(%rax), %r12
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%r12), %rdx
	movl	20(%rbx), %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	callq	_v4l2_dbg
	movq	(%r14), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movl	8(%r14), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_2
## %bb.4:
	movq	$0, 20(%r14)
	movl	4(%r12), %eax
	movl	%eax, 16(%r14)
	movl	(%r12), %eax
	movl	%eax, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_2:
	cmpl	$130, %eax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdx
	addq	$4, %rdx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	movdqu	4(%rbx), %xmm0
	pshufd	$180, %xmm0, %xmm0              ## xmm0 = xmm0[0,1,3,2]
	movdqu	%xmm0, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIDIOC_G_SELECTION, layer id = %d\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vpbe_display_g_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpbe_display_g_selection
_vpbe_display_g_selection:              ; @vpbe_display_g_selection
	.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, x2
	bl	_video_drvdata
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldp	x21, x22, [x8]
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, x22, #8
	ldr	w4, [x0, #20]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	bl	_v4l2_dbg
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x19, #8]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_3
; %bb.2:
	mov	w0, #0
	stp	wzr, wzr, [x19, #20]
	ldr	d0, [x22]
	stur	d0, [x19, #12]
	b	LBB0_6
LBB0_3:
	cmp	w8, #130
	b.ne	LBB0_5
; %bb.4:
	add	x2, x20, #4
	ldr	x8, [x21]
	ldr	w1, [x20]
	mov	x0, x21
	blr	x8
	mov	w0, #0
	ldur	q0, [x20, #4]
	mov.16b	v1, v0
	mov.s	v1[2], v0[3]
	mov.s	v1[3], v0[2]
	stur	q1, [x19, #12]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIDIOC_G_SELECTION, layer id = %d\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vpbe_display_g_selection
.subsections_via_symbols
