	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_prio_max                  ## -- Begin function v4l2_prio_max
	.p2align	4, 0x90
_v4l2_prio_max:                         ## @v4l2_prio_max
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_V4L2_PRIORITY_RECORD@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	shlq	$2, %rdi
	addq	(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jg	LBB0_1
## %bb.2:
	movq	_V4L2_PRIORITY_INTERACTIVE@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	shlq	$2, %rdi
	addq	(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jg	LBB0_1
## %bb.4:
	movq	_V4L2_PRIORITY_BACKGROUND@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	shlq	$2, %rdi
	addq	(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_6
LBB0_1:
	movl	(%r14), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_V4L2_PRIORITY_UNSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PRIORITY_RECORD,8,3       ## @V4L2_PRIORITY_RECORD
	.comm	_V4L2_PRIORITY_INTERACTIVE,8,3  ## @V4L2_PRIORITY_INTERACTIVE
	.comm	_V4L2_PRIORITY_BACKGROUND,8,3   ## @V4L2_PRIORITY_BACKGROUND
	.comm	_V4L2_PRIORITY_UNSET,4,2        ## @V4L2_PRIORITY_UNSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_prio_max                  ; -- Begin function v4l2_prio_max
	.p2align	2
_v4l2_prio_max:                         ; @v4l2_prio_max
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _V4L2_PRIORITY_RECORD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _V4L2_PRIORITY_RECORD@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x8, x9, lsl #2
	bl	_atomic_read
	cmp	x0, #1
	b.ge	LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _V4L2_PRIORITY_INTERACTIVE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _V4L2_PRIORITY_INTERACTIVE@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x8, x9, lsl #2
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_4
LBB0_2:
	ldr	w0, [x20]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19]
Lloh4:
	adrp	x19, _V4L2_PRIORITY_BACKGROUND@GOTPAGE
Lloh5:
	ldr	x19, [x19, _V4L2_PRIORITY_BACKGROUND@GOTPAGEOFF]
	ldr	x9, [x19]
	add	x0, x8, x9, lsl #2
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.5:
	ldr	w0, [x19]
	b	LBB0_3
LBB0_6:
Lloh6:
	adrp	x8, _V4L2_PRIORITY_UNSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_PRIORITY_UNSET@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PRIORITY_RECORD,8,3       ; @V4L2_PRIORITY_RECORD
	.comm	_V4L2_PRIORITY_INTERACTIVE,8,3  ; @V4L2_PRIORITY_INTERACTIVE
	.comm	_V4L2_PRIORITY_BACKGROUND,8,3   ; @V4L2_PRIORITY_BACKGROUND
	.comm	_V4L2_PRIORITY_UNSET,4,2        ; @V4L2_PRIORITY_UNSET
.subsections_via_symbols
