	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function avc_tuner_set_pids
LCPI0_0:
	.long	0                               ## 0x0
	.long	210                             ## 0xd2
	.long	32                              ## 0x20
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_avc_tuner_set_pids
	.p2align	4, 0x90
_avc_tuner_set_pids:                    ## @avc_tuner_set_pids
	.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	%esi, %r13d
	leal	-17(%r13), %eax
	cmpb	$-19, %al
	ja	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	addq	$4, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_AVC_CTYPE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_AVC_SUBUNIT_TYPE_TUNER@GOTPCREL(%rip), %rax
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movq	_AVC_OPCODE_DSD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	8(%r12), %rax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,210,32,0]
	movups	%xmm0, (%rax)
	movl	$0, 16(%rax)
	movl	%r13d, 20(%rax)
	leal	-1(%r13), %ecx
	movl	$6, %r14d
	cmpb	$-3, %cl
	ja	LBB0_5
## %bb.3:
	cmpl	$2, %r13d
	movl	$1, %ecx
	cmovael	%r13d, %ecx
	movl	$6, %r14d
	xorl	%edx, %edx
	movabsq	$549755813907, %rsi             ## imm = 0x8000000013
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, (%rax,%r14,4)
	movl	(%rbx,%rdx,4), %edi
	shrl	$8, %edi
	andl	$31, %edi
	movl	%edi, 8(%rax,%r14,4)
	movzbl	(%rbx,%rdx,4), %edi
	movl	%edi, 12(%rax,%r14,4)
	movq	$0, 16(%rax,%r14,4)
	addq	$6, %r14
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_4
LBB0_5:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_pad_operands
	addl	$3, %r14d
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_ALIGN
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_avc_write
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.6:
	movl	$50, %edi
	callq	_msleep
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AVC_CTYPE_CONTROL,4,2          ## @AVC_CTYPE_CONTROL
	.comm	_AVC_SUBUNIT_TYPE_TUNER,4,2     ## @AVC_SUBUNIT_TYPE_TUNER
	.comm	_AVC_OPCODE_DSD,4,2             ## @AVC_OPCODE_DSD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function avc_tuner_set_pids
lCPI0_0:
	.long	0                               ; 0x0
	.long	210                             ; 0xd2
	.long	32                              ; 0x20
	.long	0                               ; 0x0
lCPI0_1:
	.quad	18                              ; 0x12
	.quad	24                              ; 0x18
lCPI0_2:
	.quad	6                               ; 0x6
	.quad	12                              ; 0xc
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_avc_tuner_set_pids
	.p2align	2
_avc_tuner_set_pids:                    ; @avc_tuner_set_pids
	.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
	sub	w8, w1, #17
	cmp	w8, #237
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_14
LBB0_2:
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x21, [x0, #16]
	add	x20, x0, #4
	mov	x0, x20
	bl	_mutex_lock
Lloh3:
	adrp	x8, _AVC_CTYPE_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVC_CTYPE_CONTROL@GOTPAGEOFF]
Lloh5:
	adrp	x9, _AVC_SUBUNIT_TYPE_TUNER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AVC_SUBUNIT_TYPE_TUNER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _AVC_OPCODE_DSD@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AVC_OPCODE_DSD@GOTPAGEOFF]
	str	w9, [x21]
Lloh11:
	ldr	w9, [x10]
	stp	w9, w8, [x21, #16]
	ldr	x8, [x21, #8]
Lloh12:
	adrp	x9, lCPI0_0@PAGE
Lloh13:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	str	q0, [x8]
	stp	wzr, w23, [x8, #16]
	sub	w9, w23, #1
	cmp	w9, #253
	b.hi	LBB0_8
; %bb.3:
	cmp	w23, #1
	csinc	w9, w23, wzr, hi
	cmp	w9, #4
	b.lo	LBB0_9
; %bb.4:
	add	x10, x8, #24
	mov	w11, #24
	madd	x11, x9, x11, x8
	add	x11, x11, #24
	add	x12, x22, x9, lsl #2
	cmp	x10, x12
	ccmp	x11, x22, #0, lo
	b.hi	LBB0_9
; %bb.5:
	and	x10, x9, #0xfc
	add	x11, x10, x10, lsl #1
	lsr	x11, x11, #2
	mov	w23, #6
	bfi	x23, x11, #3, #8
Lloh14:
	adrp	x11, lCPI0_1@PAGE
Lloh15:
	ldr	q0, [x11, lCPI0_1@PAGEOFF]
Lloh16:
	adrp	x11, lCPI0_2@PAGE
Lloh17:
	ldr	q1, [x11, lCPI0_2@PAGEOFF]
	add	x11, x8, #48
	mov	w12, #1
	dup.2d	v2, x12
	mov	w12, #2
	dup.2d	v3, x12
	mov	w12, #19
	mov	w13, #128
	movi.4s	v4, #31
	mov	w14, #3
	dup.2d	v5, x14
	mov	w14, #4
	dup.2d	v6, x14
	mov	w14, #5
	dup.2d	v7, x14
	movi.2d	v16, #0x0000ff000000ff
	mov	w14, #24
	dup.2d	v17, x14
	mov	x14, x10
	mov	x15, x22
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	orr.16b	v18, v0, v2
	stur	w12, [x11, #-24]
	orr.16b	v19, v1, v2
	str	w12, [x11]
	str	w12, [x11, #24]
	str	w12, [x11, #48]
	add.2d	v20, v0, v3
	mov.d	x16, v19[1]
	fmov	x17, d19
	mov.d	x0, v18[1]
	fmov	x1, d18
	str	w13, [x8, x17, lsl #2]
	str	w13, [x8, x16, lsl #2]
	str	w13, [x8, x1, lsl #2]
	str	w13, [x8, x0, lsl #2]
	add.2d	v18, v1, v3
	ldr	q19, [x15], #16
	ushr.4s	v21, v19, #8
	and.16b	v21, v21, v4
	add.2d	v22, v0, v5
	add.2d	v23, v1, v5
	mov.d	x16, v18[1]
	fmov	x17, d18
	mov.d	x0, v20[1]
	add	x16, x8, x16, lsl #2
	fmov	x1, d20
	add	x1, x8, x1, lsl #2
	add	x0, x8, x0, lsl #2
	str	s21, [x8, x17, lsl #2]
	st1.s	{ v21 }[1], [x16]
	st1.s	{ v21 }[2], [x1]
	st1.s	{ v21 }[3], [x0]
	and.16b	v18, v19, v16
	add.2d	v19, v0, v6
	add.2d	v20, v1, v6
	mov.d	x16, v23[1]
	fmov	x17, d23
	add	x16, x8, x16, lsl #2
	mov.d	x0, v22[1]
	fmov	x1, d22
	add	x1, x8, x1, lsl #2
	add	x0, x8, x0, lsl #2
	str	s18, [x8, x17, lsl #2]
	st1.s	{ v18 }[1], [x16]
	st1.s	{ v18 }[2], [x1]
	st1.s	{ v18 }[3], [x0]
	add.2d	v18, v0, v7
	add.2d	v21, v1, v7
	mov.d	x16, v20[1]
	fmov	x17, d20
	mov.d	x0, v19[1]
	fmov	x1, d19
	str	wzr, [x8, x17, lsl #2]
	str	wzr, [x8, x16, lsl #2]
	str	wzr, [x8, x1, lsl #2]
	str	wzr, [x8, x0, lsl #2]
	mov.d	x16, v21[1]
	fmov	x17, d21
	mov.d	x0, v18[1]
	fmov	x1, d18
	add.2d	v0, v0, v17
	add.2d	v1, v1, v17
	str	wzr, [x8, x17, lsl #2]
	str	wzr, [x8, x16, lsl #2]
	add	x11, x11, #96
	str	wzr, [x8, x1, lsl #2]
	str	wzr, [x8, x0, lsl #2]
	subs	x14, x14, #4
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x9
	b.ne	LBB0_10
	b	LBB0_12
LBB0_8:
	mov	w23, #6
	b	LBB0_12
LBB0_9:
	mov	x10, #0
	mov	w23, #6
LBB0_10:
	sub	x9, x9, x10
	add	x10, x22, x10, lsl #2
	add	x11, x8, x23, lsl #2
	add	x11, x11, #16
	mov	w12, #19
	mov	w13, #128
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	lsl	x14, x23, #2
	stur	w12, [x11, #-16]
	orr	x14, x14, #0x4
	str	w13, [x8, x14]
	ldr	w14, [x10]
	ubfx	w14, w14, #8, #5
	stur	w14, [x11, #-8]
	ldrb	w14, [x10], #4
	stur	w14, [x11, #-4]
	add	x23, x23, #6
	str	xzr, [x11], #24
	subs	x9, x9, #1
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x21
	mov	x1, x23
	bl	_pad_operands
	add	w0, w23, #3
	mov	w1, #4
	bl	_ALIGN
	str	w0, [x19, #8]
	mov	x0, x19
	bl	_avc_write
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	cbnz	w19, LBB0_14
; %bb.13:
	mov	w0, #50
	bl	_msleep
LBB0_14:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpAdrp	Lloh14, Lloh16
	.loh AdrpLdr	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AVC_CTYPE_CONTROL,4,2          ; @AVC_CTYPE_CONTROL
	.comm	_AVC_SUBUNIT_TYPE_TUNER,4,2     ; @AVC_SUBUNIT_TYPE_TUNER
	.comm	_AVC_OPCODE_DSD,4,2             ; @AVC_OPCODE_DSD
.subsections_via_symbols
