	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_service_from_set
_select_service_from_set:               ## @select_service_from_set
	.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
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movl	%esi, %r15d
	movl	%edi, %r12d
	testl	%ecx, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_V4L2_SLICED_VBI_525@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_V4L2_SLICED_VBI_625@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r14d, %r14d
	andl	(%rax), %r13d
	je	LBB0_21
## %bb.4:
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_valid_service_line
	testl	%eax, %eax
	je	LBB0_21
## %bb.5:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.9:
	testl	%r12d, %r12d
	jne	LBB0_12
## %bb.10:
	cmpl	$16, %r15d
	jne	LBB0_12
## %bb.11:
	movq	_V4L2_SLICED_VPS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	cmpl	$21, %r15d
	jne	LBB0_16
## %bb.7:
	movq	_V4L2_SLICED_CAPTION_525@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r14d
	testl	%r13d, %r14d
	jne	LBB0_21
	jmp	LBB0_16
LBB0_12:
	testl	%r12d, %r12d
	jne	LBB0_15
## %bb.13:
	cmpl	$23, %r15d
	jne	LBB0_15
## %bb.14:
	movq	_V4L2_SLICED_WSS_625@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, %r13d
	cmovnel	%eax, %r13d
	movl	%r13d, %r14d
	jmp	LBB0_21
LBB0_15:
	cmpl	$23, %r15d
	je	LBB0_21
LBB0_16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT
	testl	%r13d, %eax
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	incl	%ebx
	cmpl	$32, %ebx
	jne	LBB0_17
## %bb.20:
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_18:
	movl	$1, %r14d
	movl	%ebx, %ecx
	shll	%cl, %r14d
LBB0_21:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SLICED_VBI_625,4,2        ## @V4L2_SLICED_VBI_625
	.comm	_V4L2_SLICED_VBI_525,4,2        ## @V4L2_SLICED_VBI_525
	.comm	_V4L2_SLICED_CAPTION_525,4,2    ## @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_VPS,4,2            ## @V4L2_SLICED_VPS
	.comm	_V4L2_SLICED_WSS_625,4,2        ## @V4L2_SLICED_WSS_625
	.no_dead_strip	_select_service_from_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_service_from_set
_select_service_from_set:               ; @select_service_from_set
	.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
Lloh0:
	adrp	x8, _V4L2_SLICED_VBI_625@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SLICED_VBI_625@GOTPAGEOFF]
Lloh2:
	adrp	x9, _V4L2_SLICED_VBI_525@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_SLICED_VBI_525@GOTPAGEOFF]
	cmp	w3, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	ands	w22, w8, w2
	b.eq	LBB0_16
; %bb.1:
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
	mov	x2, x3
	bl	_valid_service_line
	cbz	w0, LBB0_17
; %bb.2:
	cbz	w21, LBB0_6
; %bb.3:
	cbnz	w20, LBB0_9
; %bb.4:
	cmp	w19, #16
	b.ne	LBB0_9
; %bb.5:
Lloh4:
	adrp	x8, _V4L2_SLICED_VPS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_SLICED_VPS@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	cmp	w19, #21
	b.ne	LBB0_13
; %bb.7:
Lloh6:
	adrp	x8, _V4L2_SLICED_CAPTION_525@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_SLICED_CAPTION_525@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	tst	w0, w22
	b.ne	LBB0_17
	b	LBB0_13
LBB0_9:
	cbnz	w20, LBB0_12
; %bb.10:
	cmp	w19, #23
	b.ne	LBB0_12
; %bb.11:
Lloh8:
	adrp	x8, _V4L2_SLICED_WSS_625@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_SLICED_WSS_625@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w22
	csel	w0, wzr, w8, eq
	b	LBB0_17
LBB0_12:
	cmp	w19, #23
	b.eq	LBB0_16
LBB0_13:
	mov	w19, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_BIT
	tst	w0, w22
	b.ne	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	w19, w19, #1
	cmp	w19, #32
	b.ne	LBB0_14
LBB0_16:
	mov	w0, #0
LBB0_17:
	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
LBB0_18:
	mov	w8, #1
	lsl	w0, w8, w19
	b	LBB0_17
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SLICED_VBI_625,4,2        ; @V4L2_SLICED_VBI_625
	.comm	_V4L2_SLICED_VBI_525,4,2        ; @V4L2_SLICED_VBI_525
	.comm	_V4L2_SLICED_CAPTION_525,4,2    ; @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_VPS,4,2            ; @V4L2_SLICED_VPS
	.comm	_V4L2_SLICED_WSS_625,4,2        ; @V4L2_SLICED_WSS_625
	.no_dead_strip	_select_service_from_set
.subsections_via_symbols
