	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function pms_do_ioctl
LCPI0_0:
	.long	4                               ## 0x4
	.long	640                             ## 0x280
	.long	480                             ## 0x1e0
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_pms_do_ioctl:                          ## @pms_do_ioctl
	.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, %r15
	movl	%esi, %ebx
	callq	_video_devdata
	addl	$-128, %ebx
	cmpl	$16, %ebx
	ja	LBB0_5
## %bb.1:
	movq	%rax, %r14
	xorl	%r12d, %r12d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r12d, %r12d
	subq	(%rax), %r12
LBB0_4:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	cmpl	$0, 12(%r15)
	jne	LBB0_2
## %bb.7:
	cmpl	$0, 8(%r15)
	jne	LBB0_2
## %bb.8:
	movl	(%r15), %eax
	leal	-481(%rax), %ecx
	cmpl	$-466, %ecx                     ## imm = 0xFE2E
	jbe	LBB0_2
## %bb.9:
	movl	4(%r15), %ecx
	leal	-641(%rcx), %edx
	cmpl	$-626, %edx                     ## imm = 0xFD8E
	jbe	LBB0_2
## %bb.10:
	movl	%ecx, (%r14)
	movl	%eax, 4(%r14)
	movq	%r14, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	(%r14), %edi
	movl	4(%r14), %esi
	callq	_pms_resolution
	movq	%rbx, %rdi
	jmp	LBB0_22
LBB0_11:
	cmpl	$0, 8(%r15)
	jne	LBB0_2
## %bb.12:
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	$-145, %eax
	addl	4(%r15), %eax
	cmpl	$4, %eax
	jae	LBB0_34
## %bb.13:
	cltq
	leaq	L_switch.table.pms_do_ioctl(%rip), %rcx
	movl	(%rcx,%rax,4), %edi
	leaq	L_switch.table.pms_do_ioctl.6(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
	leaq	l_switch.table.pms_do_ioctl.7(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	callq	_pms_framerate
	movl	%ebx, %edi
	callq	_pms_secamcross
	movl	%r15d, %edi
	callq	_pms_format
	jmp	LBB0_21
LBB0_14:
	movl	20(%r15), %eax
	movq	_VIDEO_PALETTE_RGB565@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.15:
	cmpl	$16, (%r15)
	je	LBB0_18
LBB0_16:
	movq	_VIDEO_PALETTE_RGB555@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.17:
	cmpl	$15, (%r15)
	jne	LBB0_2
LBB0_18:
	movq	16(%r15), %rax
	movq	%rax, 28(%r14)
	movups	(%r15), %xmm0
	movups	%xmm0, 12(%r14)
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	4(%r15), %edi
	sarl	$8, %edi
	callq	_pms_brightness
	movl	8(%r15), %edi
	sarl	$8, %edi
	callq	_pms_hue
	movl	12(%r15), %edi
	sarl	$8, %edi
	callq	_pms_colour
	movl	16(%r15), %edi
	sarl	$8, %edi
	callq	_pms_contrast
	jmp	LBB0_21
LBB0_19:
	cmpl	$4, (%r15)
	jae	LBB0_2
## %bb.20:
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r15), %edi
	andl	$1, %edi
	callq	_pms_videosource
	movl	(%r15), %edi
	sarl	%edi
	callq	_pms_vcrinput
LBB0_21:
	movq	%r14, %rdi
LBB0_22:
	callq	_mutex_unlock
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_23:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	(%r14), %eax
	movl	%eax, 4(%r15)
	movl	4(%r14), %eax
	movl	%eax, (%r15)
	jmp	LBB0_4
LBB0_24:
	cmpl	$0, 8(%r15)
	jne	LBB0_2
## %bb.25:
	movl	20(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcpy
	movq	$0, 12(%r15)
	movq	_VIDEO_TUNER_PAL@GOTPCREL(%rip), %rax
	movq	_VIDEO_TUNER_NTSC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_VIDEO_TUNER_SECAM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	_standard@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	$3, %rax
	ja	LBB0_35
## %bb.26:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_27:
	movl	$148, 4(%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_28:
	movq	28(%r14), %rax
	movq	%rax, 16(%r15)
	movups	12(%r14), %xmm0
	movups	%xmm0, (%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_29:
	movl	(%r15), %eax
	cmpl	$4, %eax
	jae	LBB0_2
## %bb.30:
	movl	$0, 16(%r15)
	movl	$1, 4(%r15)
	movq	_VIDEO_TYPE_CAMERA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%r15)
	jae	LBB0_35
## %bb.31:
	movl	%eax, %eax
	leaq	LJTI0_2(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_32:
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_39
LBB0_33:
	movl	28(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	_VID_TYPE_CAPTURE@GOTPCREL(%rip), %rax
	movq	_VID_TYPE_SCALES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4,640,480,16]
	movups	%xmm0, 4(%r15)
	movq	$16, 20(%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_34:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_2
LBB0_36:
	movl	8(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_39
LBB0_37:
	movl	8(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_39
LBB0_38:
	movl	8(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_39:
	callq	_strcpy
LBB0_35:
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_41:
	movl	$147, 4(%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_42:
	movl	$146, 4(%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_43:
	movl	$145, 4(%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_19
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_28
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_29
	.long	L0_0_set_33
	.long	L0_0_set_2
	.long	L0_0_set_2
.set L0_1_set_27, LBB0_27-LJTI0_1
.set L0_1_set_41, LBB0_41-LJTI0_1
.set L0_1_set_42, LBB0_42-LJTI0_1
.set L0_1_set_43, LBB0_43-LJTI0_1
LJTI0_1:
	.long	L0_1_set_27
	.long	L0_1_set_41
	.long	L0_1_set_42
	.long	L0_1_set_43
.set L0_2_set_32, LBB0_32-LJTI0_2
.set L0_2_set_36, LBB0_36-LJTI0_2
.set L0_2_set_37, LBB0_37-LJTI0_2
.set L0_2_set_38, LBB0_38-LJTI0_2
LJTI0_2:
	.long	L0_2_set_32
	.long	L0_2_set_36
	.long	L0_2_set_37
	.long	L0_2_set_38
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mediavision PMS"

	.comm	_VID_TYPE_CAPTURE,4,2           ## @VID_TYPE_CAPTURE
	.comm	_VID_TYPE_SCALES,4,2            ## @VID_TYPE_SCALES
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_VIDEO_TYPE_CAMERA,4,2          ## @VIDEO_TYPE_CAMERA
L_.str.1:                               ## @.str.1
	.asciz	"Composite"

L_.str.2:                               ## @.str.2
	.asciz	"SVideo"

L_.str.3:                               ## @.str.3
	.asciz	"Composite(VCR)"

L_.str.4:                               ## @.str.4
	.asciz	"SVideo(VCR)"

L_.str.5:                               ## @.str.5
	.asciz	"Format"

	.comm	_VIDEO_TUNER_PAL,4,2            ## @VIDEO_TUNER_PAL
	.comm	_VIDEO_TUNER_NTSC,4,2           ## @VIDEO_TUNER_NTSC
	.comm	_VIDEO_TUNER_SECAM,4,2          ## @VIDEO_TUNER_SECAM
	.comm	_standard,4,2                   ## @standard
	.comm	_VIDEO_PALETTE_RGB565,4,2       ## @VIDEO_PALETTE_RGB565
	.comm	_VIDEO_PALETTE_RGB555,4,2       ## @VIDEO_PALETTE_RGB555
	.comm	_ENOIOCTLCMD,8,3                ## @ENOIOCTLCMD
	.no_dead_strip	_pms_do_ioctl
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.pms_do_ioctl
L_switch.table.pms_do_ioctl:
	.long	25                              ## 0x19
	.long	25                              ## 0x19
	.long	30                              ## 0x1e
	.long	25                              ## 0x19

	.p2align	2                               ## @switch.table.pms_do_ioctl.6
L_switch.table.pms_do_ioctl.6:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.pms_do_ioctl.7
l_switch.table.pms_do_ioctl.7:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	0                               ## 0x0

.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 pms_do_ioctl
lCPI0_0:
	.long	4                               ; 0x4
	.long	640                             ; 0x280
	.long	480                             ; 0x1e0
	.long	16                              ; 0x10
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	16                              ; 0x10
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pms_do_ioctl:                          ; @pms_do_ioctl
	.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
	mov	x21, x1
	bl	_video_devdata
	sub	w8, w21, #128
	cmp	w8, #16
	b.hi	LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x0, #0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_4:
	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_5:
Lloh4:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
	b	LBB0_3
LBB0_6:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_2
; %bb.7:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_2
; %bb.8:
	ldr	w8, [x19]
	sub	w9, w8, #481
	cmn	w9, #466
	b.ls	LBB0_2
; %bb.9:
	ldr	w9, [x19, #4]
	sub	w10, w9, #641
	cmn	w10, #626
	b.ls	LBB0_2
; %bb.10:
	stp	w9, w8, [x20]
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldp	w0, w1, [x20]
	bl	_pms_resolution
	mov	x0, x19
	b	LBB0_22
LBB0_11:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_2
; %bb.12:
	add	x20, x20, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19, #4]
	sub	w8, w8, #145
	cmp	w8, #4
	b.hs	LBB0_34
; %bb.13:
	sbfiz	x8, x8, #2, #32
Lloh6:
	adrp	x9, l_switch.table.pms_do_ioctl@PAGE
Lloh7:
	add	x9, x9, l_switch.table.pms_do_ioctl@PAGEOFF
	ldr	w0, [x9, x8]
Lloh8:
	adrp	x9, l_switch.table.pms_do_ioctl.6@PAGE
Lloh9:
	add	x9, x9, l_switch.table.pms_do_ioctl.6@PAGEOFF
	ldr	w19, [x9, x8]
Lloh10:
	adrp	x9, l_switch.table.pms_do_ioctl.7@PAGE
Lloh11:
	add	x9, x9, l_switch.table.pms_do_ioctl.7@PAGEOFF
	ldr	w21, [x9, x8]
	bl	_pms_framerate
	mov	x0, x19
	bl	_pms_secamcross
	mov	x0, x21
	bl	_pms_format
	b	LBB0_21
LBB0_14:
	ldr	w8, [x19, #20]
Lloh12:
	adrp	x9, _VIDEO_PALETTE_RGB565@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VIDEO_PALETTE_RGB565@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.15:
	ldr	w9, [x19]
	cmp	w9, #16
	b.eq	LBB0_18
LBB0_16:
Lloh15:
	adrp	x9, _VIDEO_PALETTE_RGB555@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VIDEO_PALETTE_RGB555@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.17:
	ldr	w8, [x19]
	cmp	w8, #15
	b.ne	LBB0_2
LBB0_18:
	ldr	q0, [x19]
	ldr	x8, [x19, #16]
	stur	x8, [x20, #28]
	stur	q0, [x20, #12]
	add	x20, x20, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19, #4]
	asr	w0, w8, #8
	bl	_pms_brightness
	ldr	w8, [x19, #8]
	asr	w0, w8, #8
	bl	_pms_hue
	ldr	w8, [x19, #12]
	asr	w0, w8, #8
	bl	_pms_colour
	ldr	w8, [x19, #16]
	asr	w0, w8, #8
	bl	_pms_contrast
	b	LBB0_21
LBB0_19:
	ldr	w8, [x19]
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.20:
	add	x20, x20, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
	and	w0, w8, #0x1
	bl	_pms_videosource
	ldr	w8, [x19]
	asr	w0, w8, #1
	bl	_pms_vcrinput
LBB0_21:
	mov	x0, x20
LBB0_22:
	bl	_mutex_unlock
	mov	x0, #0
	b	LBB0_4
LBB0_23:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, #0
	ldr	d0, [x20]
	rev64.2s	v0, v0
	str	d0, [x19]
	b	LBB0_4
LBB0_24:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_2
; %bb.25:
	ldr	w0, [x19, #20]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcpy
	stp	wzr, wzr, [x19, #12]
Lloh20:
	adrp	x8, _VIDEO_TUNER_PAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VIDEO_TUNER_PAL@GOTPAGEOFF]
Lloh22:
	adrp	x9, _VIDEO_TUNER_NTSC@GOTPAGE
Lloh23:
	ldr	x9, [x9, _VIDEO_TUNER_NTSC@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh26:
	adrp	x9, _VIDEO_TUNER_SECAM@GOTPAGE
Lloh27:
	ldr	x9, [x9, _VIDEO_TUNER_SECAM@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh29:
	adrp	x8, _standard@GOTPAGE
Lloh30:
	ldr	x8, [x8, _standard@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w8, #3
	b.hi	LBB0_39
; %bb.26:
Lloh32:
	adrp	x9, lJTI0_1@PAGE
Lloh33:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_27
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_27:
	mov	x0, #0
	mov	w8, #148
	str	w8, [x19, #4]
	b	LBB0_4
LBB0_28:
	mov	x0, #0
	ldur	q0, [x20, #12]
	ldur	x8, [x20, #28]
	str	x8, [x19, #16]
	str	q0, [x19]
	b	LBB0_4
LBB0_29:
	ldr	w8, [x19]
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.30:
	mov	w9, #1
	str	w9, [x19, #4]
Lloh34:
	adrp	x9, _VIDEO_TYPE_CAMERA@GOTPAGE
Lloh35:
	ldr	x9, [x9, _VIDEO_TYPE_CAMERA@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	stp	w9, wzr, [x19, #12]
	cmp	w8, #3
	b.hi	LBB0_39
; %bb.31:
Lloh37:
	adrp	x9, lJTI0_2@PAGE
Lloh38:
	add	x9, x9, lJTI0_2@PAGEOFF
	adr	x10, LBB0_32
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_32:
	ldr	w0, [x19, #8]
Lloh39:
	adrp	x1, l_.str.1@PAGE
Lloh40:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_38
LBB0_33:
	ldr	w0, [x19, #28]
Lloh41:
	adrp	x1, l_.str@PAGE
Lloh42:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	mov	x0, #0
Lloh43:
	adrp	x8, _VID_TYPE_CAPTURE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _VID_TYPE_CAPTURE@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _VID_TYPE_SCALES@GOTPAGE
Lloh47:
	ldr	x9, [x9, _VID_TYPE_SCALES@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh49:
	adrp	x8, lCPI0_0@PAGE
Lloh50:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #4]
Lloh51:
	adrp	x8, lCPI0_1@PAGE
Lloh52:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [x19, #20]
	b	LBB0_4
LBB0_34:
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_2
LBB0_35:
	ldr	w0, [x19, #8]
Lloh53:
	adrp	x1, l_.str.2@PAGE
Lloh54:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_38
LBB0_36:
	ldr	w0, [x19, #8]
Lloh55:
	adrp	x1, l_.str.3@PAGE
Lloh56:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_38
LBB0_37:
	ldr	w0, [x19, #8]
Lloh57:
	adrp	x1, l_.str.4@PAGE
Lloh58:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_38:
	bl	_strcpy
LBB0_39:
	mov	x0, #0
	b	LBB0_4
LBB0_40:
	mov	x0, #0
	mov	w8, #147
	str	w8, [x19, #4]
	b	LBB0_4
LBB0_41:
	mov	x0, #0
	mov	w8, #146
	str	w8, [x19, #4]
	b	LBB0_4
LBB0_42:
	mov	x0, #0
	mov	w8, #145
	str	w8, [x19, #4]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdr	Lloh51, Lloh52
	.loh AdrpAdrp	Lloh49, Lloh51
	.loh AdrpLdr	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
	.byte	(LBB0_28-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_29-LBB0_2)>>2
	.byte	(LBB0_33-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_27-LBB0_27)>>2
	.byte	(LBB0_40-LBB0_27)>>2
	.byte	(LBB0_41-LBB0_27)>>2
	.byte	(LBB0_42-LBB0_27)>>2
lJTI0_2:
	.byte	(LBB0_32-LBB0_32)>>2
	.byte	(LBB0_35-LBB0_32)>>2
	.byte	(LBB0_36-LBB0_32)>>2
	.byte	(LBB0_37-LBB0_32)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mediavision PMS"

	.comm	_VID_TYPE_CAPTURE,4,2           ; @VID_TYPE_CAPTURE
	.comm	_VID_TYPE_SCALES,4,2            ; @VID_TYPE_SCALES
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_VIDEO_TYPE_CAMERA,4,2          ; @VIDEO_TYPE_CAMERA
l_.str.1:                               ; @.str.1
	.asciz	"Composite"

l_.str.2:                               ; @.str.2
	.asciz	"SVideo"

l_.str.3:                               ; @.str.3
	.asciz	"Composite(VCR)"

l_.str.4:                               ; @.str.4
	.asciz	"SVideo(VCR)"

l_.str.5:                               ; @.str.5
	.asciz	"Format"

	.comm	_VIDEO_TUNER_PAL,4,2            ; @VIDEO_TUNER_PAL
	.comm	_VIDEO_TUNER_NTSC,4,2           ; @VIDEO_TUNER_NTSC
	.comm	_VIDEO_TUNER_SECAM,4,2          ; @VIDEO_TUNER_SECAM
	.comm	_standard,4,2                   ; @standard
	.comm	_VIDEO_PALETTE_RGB565,4,2       ; @VIDEO_PALETTE_RGB565
	.comm	_VIDEO_PALETTE_RGB555,4,2       ; @VIDEO_PALETTE_RGB555
	.comm	_ENOIOCTLCMD,8,3                ; @ENOIOCTLCMD
	.no_dead_strip	_pms_do_ioctl
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.pms_do_ioctl
l_switch.table.pms_do_ioctl:
	.long	25                              ; 0x19
	.long	25                              ; 0x19
	.long	30                              ; 0x1e
	.long	25                              ; 0x19

	.p2align	2                               ; @switch.table.pms_do_ioctl.6
l_switch.table.pms_do_ioctl.6:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.pms_do_ioctl.7
l_switch.table.pms_do_ioctl.7:
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	0                               ; 0x0

.subsections_via_symbols
