	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar_do_ioctl
_ar_do_ioctl:                           ## @ar_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, %r12
	movl	%esi, %ebx
	callq	_video_devdata
	movq	%rax, %rdi
	callq	_video_get_drvdata
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_DEBUG
	leal	-128(%rbx), %eax
	cmpl	$28, %eax
	ja	LBB0_43
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_31:
	leaq	L_.str.18(%rip), %rsi
	jmp	LBB0_11
LBB0_43:
	leaq	L_.str.30(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$1, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DEBUG
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_38:
	leaq	L_.str.25(%rip), %rsi
	jmp	LBB0_11
LBB0_13:
	leaq	L_.str.10(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_DEBUG
	movl	4(%r12), %eax
	movq	_AR_WIDTH_VGA@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_15
## %bb.14:
	movl	(%r12), %ecx
	movq	_AR_HEIGHT_VGA@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_18
LBB0_15:
	movq	_AR_WIDTH_QVGA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.16:
	movl	(%r12), %eax
	movq	_AR_HEIGHT_QVGA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
LBB0_18:
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	4(%r12), %eax
	movl	%eax, 28(%r14)
	movl	(%r12), %ecx
	movl	%ecx, 32(%r14)
	cmpl	(%rbx), %eax
	jne	LBB0_21
## %bb.19:
	movq	_AR_SIZE_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_AR_FRAME_BYTES_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_AR_LINE_BYTES_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_vga_interlace@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_22
## %bb.20:
	movq	_AR_MODE_NORMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_42:
	leaq	L_.str.29(%rip), %rsi
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_4
LBB0_37:
	leaq	L_.str.24(%rip), %rsi
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_4
LBB0_40:
	leaq	L_.str.27(%rip), %rsi
	jmp	LBB0_11
LBB0_28:
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_11
LBB0_25:
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_11
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
LBB0_36:
	leaq	L_.str.23(%rip), %rsi
	jmp	LBB0_11
LBB0_30:
	leaq	L_.str.17(%rip), %rsi
	jmp	LBB0_11
LBB0_32:
	leaq	L_.str.19(%rip), %rsi
	jmp	LBB0_11
LBB0_26:
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_4
LBB0_12:
	leaq	L_.str.9(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_DEBUG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	28(%r14), %eax
	movl	%eax, 4(%r12)
	movl	32(%r14), %eax
	movl	%eax, (%r12)
	jmp	LBB0_45
LBB0_41:
	leaq	L_.str.28(%rip), %rsi
	jmp	LBB0_11
LBB0_34:
	leaq	L_.str.21(%rip), %rsi
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_4
LBB0_39:
	leaq	L_.str.26(%rip), %rsi
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_4
LBB0_33:
	leaq	L_.str.20(%rip), %rsi
	jmp	LBB0_11
LBB0_27:
	leaq	L_.str.14(%rip), %rsi
	jmp	LBB0_11
LBB0_24:
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	xorl	%r15d, %r15d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_DEBUG
	jmp	LBB0_45
LBB0_35:
	leaq	L_.str.22(%rip), %rsi
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_DEBUG
	movl	28(%r12), %edi
	movq	40(%r14), %rax
	movl	(%rax), %esi
	callq	_strcpy
	movq	_VID_TYPE_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	$0, 16(%r12)
	movq	_MAX_AR_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_MAX_AR_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_MIN_AR_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_MIN_AR_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	jmp	LBB0_45
LBB0_29:
	leaq	L_.str.16(%rip), %rsi
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.8(%rip), %rsi
LBB0_11:
	xorl	%r15d, %r15d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_DEBUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_44:
	subq	(%rax), %r15
LBB0_45:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_44
LBB0_21:
	movq	_AR_SIZE_QVGA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_AR_FRAME_BYTES_QVGA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_AR_LINE_BYTES_QVGA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
LBB0_22:
	movq	_AR_MODE_INTERLACE@GOTPCREL(%rip), %rax
LBB0_23:
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%r15d, %r15d
	jmp	LBB0_45
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_37, LBB0_37-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_31
	.long	L0_0_set_38
	.long	L0_0_set_13
	.long	L0_0_set_42
	.long	L0_0_set_7
	.long	L0_0_set_37
	.long	L0_0_set_9
	.long	L0_0_set_40
	.long	L0_0_set_28
	.long	L0_0_set_25
	.long	L0_0_set_5
	.long	L0_0_set_36
	.long	L0_0_set_30
	.long	L0_0_set_32
	.long	L0_0_set_26
	.long	L0_0_set_12
	.long	L0_0_set_41
	.long	L0_0_set_34
	.long	L0_0_set_6
	.long	L0_0_set_39
	.long	L0_0_set_8
	.long	L0_0_set_33
	.long	L0_0_set_27
	.long	L0_0_set_24
	.long	L0_0_set_3
	.long	L0_0_set_35
	.long	L0_0_set_2
	.long	L0_0_set_29
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ar_ioctl()\n"

L_.str.1:                               ## @.str.1
	.asciz	"VIDIOCGCAP:\n"

	.comm	_VID_TYPE_CAPTURE,4,2           ## @VID_TYPE_CAPTURE
	.comm	_MAX_AR_WIDTH,4,2               ## @MAX_AR_WIDTH
	.comm	_MAX_AR_HEIGHT,4,2              ## @MAX_AR_HEIGHT
	.comm	_MIN_AR_WIDTH,4,2               ## @MIN_AR_WIDTH
	.comm	_MIN_AR_HEIGHT,4,2              ## @MIN_AR_HEIGHT
L_.str.2:                               ## @.str.2
	.asciz	"VIDIOCGCHAN:\n"

L_.str.3:                               ## @.str.3
	.asciz	"VIDIOCSCHAN:\n"

L_.str.4:                               ## @.str.4
	.asciz	"VIDIOCGTUNER:\n"

L_.str.5:                               ## @.str.5
	.asciz	"VIDIOCSTUNER:\n"

L_.str.6:                               ## @.str.6
	.asciz	"VIDIOCGPICT:\n"

L_.str.7:                               ## @.str.7
	.asciz	"VIDIOCSPICT:\n"

L_.str.8:                               ## @.str.8
	.asciz	"VIDIOCCAPTURE:\n"

	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.9:                               ## @.str.9
	.asciz	"VIDIOCGWIN:\n"

L_.str.10:                              ## @.str.10
	.asciz	"VIDIOCSWIN:\n"

	.comm	_AR_WIDTH_VGA,4,2               ## @AR_WIDTH_VGA
	.comm	_AR_HEIGHT_VGA,4,2              ## @AR_HEIGHT_VGA
	.comm	_AR_WIDTH_QVGA,4,2              ## @AR_WIDTH_QVGA
	.comm	_AR_HEIGHT_QVGA,4,2             ## @AR_HEIGHT_QVGA
	.comm	_AR_SIZE_VGA,4,2                ## @AR_SIZE_VGA
	.comm	_AR_FRAME_BYTES_VGA,4,2         ## @AR_FRAME_BYTES_VGA
	.comm	_AR_LINE_BYTES_VGA,4,2          ## @AR_LINE_BYTES_VGA
	.comm	_vga_interlace,4,2              ## @vga_interlace
	.comm	_AR_MODE_INTERLACE,8,3          ## @AR_MODE_INTERLACE
	.comm	_AR_MODE_NORMAL,8,3             ## @AR_MODE_NORMAL
	.comm	_AR_SIZE_QVGA,4,2               ## @AR_SIZE_QVGA
	.comm	_AR_FRAME_BYTES_QVGA,4,2        ## @AR_FRAME_BYTES_QVGA
	.comm	_AR_LINE_BYTES_QVGA,4,2         ## @AR_LINE_BYTES_QVGA
L_.str.11:                              ## @.str.11
	.asciz	"VIDIOCGFBUF:\n"

L_.str.12:                              ## @.str.12
	.asciz	"VIDIOCSFBUF:\n"

L_.str.13:                              ## @.str.13
	.asciz	"VIDIOCKEY:\n"

L_.str.14:                              ## @.str.14
	.asciz	"VIDIOCGFREQ:\n"

L_.str.15:                              ## @.str.15
	.asciz	"VIDIOCSFREQ:\n"

L_.str.16:                              ## @.str.16
	.asciz	"VIDIOCGAUDIO:\n"

L_.str.17:                              ## @.str.17
	.asciz	"VIDIOCSAUDIO:\n"

L_.str.18:                              ## @.str.18
	.asciz	"VIDIOCSYNC:\n"

L_.str.19:                              ## @.str.19
	.asciz	"VIDIOCMCAPTURE:\n"

L_.str.20:                              ## @.str.20
	.asciz	"VIDIOCGMBUF:\n"

L_.str.21:                              ## @.str.21
	.asciz	"VIDIOCGUNIT:\n"

L_.str.22:                              ## @.str.22
	.asciz	"VIDIOCGCAPTURE:\n"

L_.str.23:                              ## @.str.23
	.asciz	"VIDIOCSCAPTURE:\n"

L_.str.24:                              ## @.str.24
	.asciz	"VIDIOCSPLAYMODE:\n"

L_.str.25:                              ## @.str.25
	.asciz	"VIDIOCSWRITEMODE:\n"

L_.str.26:                              ## @.str.26
	.asciz	"VIDIOCGPLAYINFO:\n"

L_.str.27:                              ## @.str.27
	.asciz	"VIDIOCSMICROCODE:\n"

L_.str.28:                              ## @.str.28
	.asciz	"VIDIOCGVBIFMT:\n"

L_.str.29:                              ## @.str.29
	.asciz	"VIDIOCSVBIFMT:\n"

L_.str.30:                              ## @.str.30
	.asciz	"Unknown ioctl(0x%08x)\n"

	.comm	_ENOIOCTLCMD,8,3                ## @ENOIOCTLCMD
	.no_dead_strip	_ar_do_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar_do_ioctl
_ar_do_ioctl:                           ; @ar_do_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	bl	_video_devdata
	bl	_video_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_DEBUG
	sub	w8, w21, #128
	cmp	w8, #28
	b.hi	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh4:
	adrp	x1, l_.str.18@PAGE
Lloh5:
	add	x1, x1, l_.str.18@PAGEOFF
	b	LBB0_38
LBB0_3:
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str.30@PAGE
Lloh7:
	add	x1, x1, l_.str.30@PAGEOFF
	mov	w0, #1
	bl	_DEBUG
Lloh8:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
	b	LBB0_40
LBB0_4:
Lloh10:
	adrp	x1, l_.str.25@PAGE
Lloh11:
	add	x1, x1, l_.str.25@PAGEOFF
	b	LBB0_38
LBB0_5:
Lloh12:
	adrp	x1, l_.str.10@PAGE
Lloh13:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #1
	bl	_DEBUG
	ldr	w8, [x20, #4]
Lloh14:
	adrp	x21, _AR_WIDTH_VGA@GOTPAGE
Lloh15:
	ldr	x21, [x21, _AR_WIDTH_VGA@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	ldr	w9, [x20]
Lloh16:
	adrp	x10, _AR_HEIGHT_VGA@GOTPAGE
Lloh17:
	ldr	x10, [x10, _AR_HEIGHT_VGA@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_9
LBB0_7:
Lloh19:
	adrp	x9, _AR_WIDTH_QVGA@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AR_WIDTH_QVGA@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_39
; %bb.8:
	ldr	w8, [x20]
Lloh22:
	adrp	x9, _AR_HEIGHT_QVGA@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AR_HEIGHT_QVGA@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_39
LBB0_9:
	mov	x0, x19
	bl	_mutex_lock
	ldp	w9, w8, [x20]
	stp	w8, w9, [x19, #28]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_42
; %bb.10:
Lloh25:
	adrp	x8, _AR_SIZE_VGA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AR_SIZE_VGA@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh28:
	adrp	x8, _AR_FRAME_BYTES_VGA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AR_FRAME_BYTES_VGA@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _AR_LINE_BYTES_VGA@GOTPAGE
Lloh32:
	ldr	x9, [x9, _AR_LINE_BYTES_VGA@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh34:
	adrp	x8, _vga_interlace@GOTPAGE
Lloh35:
	ldr	x8, [x8, _vga_interlace@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _AR_MODE_INTERLACE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _AR_MODE_INTERLACE@GOTPAGEOFF]
Lloh39:
	adrp	x10, _AR_MODE_NORMAL@GOTPAGE
Lloh40:
	ldr	x10, [x10, _AR_MODE_NORMAL@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	b	LBB0_43
LBB0_11:
Lloh41:
	adrp	x1, l_.str.29@PAGE
Lloh42:
	add	x1, x1, l_.str.29@PAGEOFF
	b	LBB0_38
LBB0_12:
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_33
LBB0_13:
Lloh45:
	adrp	x1, l_.str.24@PAGE
Lloh46:
	add	x1, x1, l_.str.24@PAGEOFF
	b	LBB0_38
LBB0_14:
Lloh47:
	adrp	x1, l_.str.7@PAGE
Lloh48:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_33
LBB0_15:
Lloh49:
	adrp	x1, l_.str.27@PAGE
Lloh50:
	add	x1, x1, l_.str.27@PAGEOFF
	b	LBB0_38
LBB0_16:
Lloh51:
	adrp	x1, l_.str.15@PAGE
Lloh52:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_38
LBB0_17:
Lloh53:
	adrp	x1, l_.str.12@PAGE
Lloh54:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_38
LBB0_18:
Lloh55:
	adrp	x1, l_.str.3@PAGE
Lloh56:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_33
LBB0_19:
Lloh57:
	adrp	x1, l_.str.23@PAGE
Lloh58:
	add	x1, x1, l_.str.23@PAGEOFF
	b	LBB0_38
LBB0_20:
Lloh59:
	adrp	x1, l_.str.17@PAGE
Lloh60:
	add	x1, x1, l_.str.17@PAGEOFF
	b	LBB0_38
LBB0_21:
Lloh61:
	adrp	x1, l_.str.19@PAGE
Lloh62:
	add	x1, x1, l_.str.19@PAGEOFF
	b	LBB0_38
LBB0_22:
Lloh63:
	adrp	x1, l_.str.13@PAGE
Lloh64:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_33
LBB0_23:
Lloh65:
	adrp	x1, l_.str.9@PAGE
Lloh66:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #1
	bl	_DEBUG
	mov	x0, x20
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, #0
	ldur	d0, [x19, #28]
	rev64.2s	v0, v0
	str	d0, [x20]
	b	LBB0_41
LBB0_24:
Lloh67:
	adrp	x1, l_.str.28@PAGE
Lloh68:
	add	x1, x1, l_.str.28@PAGEOFF
	b	LBB0_38
LBB0_25:
Lloh69:
	adrp	x1, l_.str.21@PAGE
Lloh70:
	add	x1, x1, l_.str.21@PAGEOFF
	b	LBB0_38
LBB0_26:
Lloh71:
	adrp	x1, l_.str.4@PAGE
Lloh72:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_33
LBB0_27:
Lloh73:
	adrp	x1, l_.str.26@PAGE
Lloh74:
	add	x1, x1, l_.str.26@PAGEOFF
	b	LBB0_38
LBB0_28:
Lloh75:
	adrp	x1, l_.str.6@PAGE
Lloh76:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_33
LBB0_29:
Lloh77:
	adrp	x1, l_.str.20@PAGE
Lloh78:
	add	x1, x1, l_.str.20@PAGEOFF
	b	LBB0_38
LBB0_30:
Lloh79:
	adrp	x1, l_.str.14@PAGE
Lloh80:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_38
LBB0_31:
Lloh81:
	adrp	x1, l_.str.11@PAGE
Lloh82:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_38
LBB0_32:
Lloh83:
	adrp	x1, l_.str.2@PAGE
Lloh84:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_33:
	mov	w0, #1
	bl	_DEBUG
	mov	x0, #0
	b	LBB0_41
LBB0_34:
Lloh85:
	adrp	x1, l_.str.22@PAGE
Lloh86:
	add	x1, x1, l_.str.22@PAGEOFF
	b	LBB0_38
LBB0_35:
Lloh87:
	adrp	x1, l_.str.1@PAGE
Lloh88:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_DEBUG
	ldr	w0, [x20, #28]
	ldr	x8, [x19, #40]
	ldr	w1, [x8]
	bl	_strcpy
	mov	x0, #0
Lloh89:
	adrp	x8, _VID_TYPE_CAPTURE@GOTPAGE
Lloh90:
	ldr	x8, [x8, _VID_TYPE_CAPTURE@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh92:
	adrp	x8, _MAX_AR_WIDTH@GOTPAGE
Lloh93:
	ldr	x8, [x8, _MAX_AR_WIDTH@GOTPAGEOFF]
Lloh94:
	ldr	w8, [x8]
Lloh95:
	adrp	x9, _MAX_AR_HEIGHT@GOTPAGE
Lloh96:
	ldr	x9, [x9, _MAX_AR_HEIGHT@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
Lloh98:
	adrp	x8, _MIN_AR_WIDTH@GOTPAGE
Lloh99:
	ldr	x8, [x8, _MIN_AR_WIDTH@GOTPAGEOFF]
Lloh100:
	adrp	x9, _MIN_AR_HEIGHT@GOTPAGE
Lloh101:
	ldr	x9, [x9, _MIN_AR_HEIGHT@GOTPAGEOFF]
Lloh102:
	ldr	w8, [x8]
Lloh103:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	str	xzr, [x20, #16]
	b	LBB0_41
LBB0_36:
Lloh104:
	adrp	x1, l_.str.16@PAGE
Lloh105:
	add	x1, x1, l_.str.16@PAGEOFF
	b	LBB0_38
LBB0_37:
Lloh106:
	adrp	x1, l_.str.8@PAGE
Lloh107:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_38:
	mov	w0, #1
	bl	_DEBUG
LBB0_39:
Lloh108:
	adrp	x8, _EINVAL@GOTPAGE
Lloh109:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_40:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_41:
	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
	add	sp, sp, #64
	ret
LBB0_42:
Lloh110:
	adrp	x8, _AR_SIZE_QVGA@GOTPAGE
Lloh111:
	ldr	x8, [x8, _AR_SIZE_QVGA@GOTPAGEOFF]
Lloh112:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh113:
	adrp	x8, _AR_FRAME_BYTES_QVGA@GOTPAGE
Lloh114:
	ldr	x8, [x8, _AR_FRAME_BYTES_QVGA@GOTPAGEOFF]
Lloh115:
	adrp	x9, _AR_LINE_BYTES_QVGA@GOTPAGE
Lloh116:
	ldr	x9, [x9, _AR_LINE_BYTES_QVGA@GOTPAGEOFF]
Lloh117:
	ldr	w8, [x8]
Lloh118:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh119:
	adrp	x8, _AR_MODE_INTERLACE@GOTPAGE
Lloh120:
	ldr	x8, [x8, _AR_MODE_INTERLACE@GOTPAGEOFF]
LBB0_43:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, #0
	b	LBB0_41
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh102
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpAdd	Lloh106, Lloh107
	.loh AdrpLdrGot	Lloh108, Lloh109
	.loh AdrpLdrGot	Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh117
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
	.byte	(LBB0_25-LBB0_2)>>2
	.byte	(LBB0_26-LBB0_2)>>2
	.byte	(LBB0_27-LBB0_2)>>2
	.byte	(LBB0_28-LBB0_2)>>2
	.byte	(LBB0_29-LBB0_2)>>2
	.byte	(LBB0_30-LBB0_2)>>2
	.byte	(LBB0_31-LBB0_2)>>2
	.byte	(LBB0_32-LBB0_2)>>2
	.byte	(LBB0_34-LBB0_2)>>2
	.byte	(LBB0_35-LBB0_2)>>2
	.byte	(LBB0_36-LBB0_2)>>2
	.byte	(LBB0_37-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ar_ioctl()\n"

l_.str.1:                               ; @.str.1
	.asciz	"VIDIOCGCAP:\n"

	.comm	_VID_TYPE_CAPTURE,4,2           ; @VID_TYPE_CAPTURE
	.comm	_MAX_AR_WIDTH,4,2               ; @MAX_AR_WIDTH
	.comm	_MAX_AR_HEIGHT,4,2              ; @MAX_AR_HEIGHT
	.comm	_MIN_AR_WIDTH,4,2               ; @MIN_AR_WIDTH
	.comm	_MIN_AR_HEIGHT,4,2              ; @MIN_AR_HEIGHT
l_.str.2:                               ; @.str.2
	.asciz	"VIDIOCGCHAN:\n"

l_.str.3:                               ; @.str.3
	.asciz	"VIDIOCSCHAN:\n"

l_.str.4:                               ; @.str.4
	.asciz	"VIDIOCGTUNER:\n"

l_.str.5:                               ; @.str.5
	.asciz	"VIDIOCSTUNER:\n"

l_.str.6:                               ; @.str.6
	.asciz	"VIDIOCGPICT:\n"

l_.str.7:                               ; @.str.7
	.asciz	"VIDIOCSPICT:\n"

l_.str.8:                               ; @.str.8
	.asciz	"VIDIOCCAPTURE:\n"

	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.9:                               ; @.str.9
	.asciz	"VIDIOCGWIN:\n"

l_.str.10:                              ; @.str.10
	.asciz	"VIDIOCSWIN:\n"

	.comm	_AR_WIDTH_VGA,4,2               ; @AR_WIDTH_VGA
	.comm	_AR_HEIGHT_VGA,4,2              ; @AR_HEIGHT_VGA
	.comm	_AR_WIDTH_QVGA,4,2              ; @AR_WIDTH_QVGA
	.comm	_AR_HEIGHT_QVGA,4,2             ; @AR_HEIGHT_QVGA
	.comm	_AR_SIZE_VGA,4,2                ; @AR_SIZE_VGA
	.comm	_AR_FRAME_BYTES_VGA,4,2         ; @AR_FRAME_BYTES_VGA
	.comm	_AR_LINE_BYTES_VGA,4,2          ; @AR_LINE_BYTES_VGA
	.comm	_vga_interlace,4,2              ; @vga_interlace
	.comm	_AR_MODE_INTERLACE,8,3          ; @AR_MODE_INTERLACE
	.comm	_AR_MODE_NORMAL,8,3             ; @AR_MODE_NORMAL
	.comm	_AR_SIZE_QVGA,4,2               ; @AR_SIZE_QVGA
	.comm	_AR_FRAME_BYTES_QVGA,4,2        ; @AR_FRAME_BYTES_QVGA
	.comm	_AR_LINE_BYTES_QVGA,4,2         ; @AR_LINE_BYTES_QVGA
l_.str.11:                              ; @.str.11
	.asciz	"VIDIOCGFBUF:\n"

l_.str.12:                              ; @.str.12
	.asciz	"VIDIOCSFBUF:\n"

l_.str.13:                              ; @.str.13
	.asciz	"VIDIOCKEY:\n"

l_.str.14:                              ; @.str.14
	.asciz	"VIDIOCGFREQ:\n"

l_.str.15:                              ; @.str.15
	.asciz	"VIDIOCSFREQ:\n"

l_.str.16:                              ; @.str.16
	.asciz	"VIDIOCGAUDIO:\n"

l_.str.17:                              ; @.str.17
	.asciz	"VIDIOCSAUDIO:\n"

l_.str.18:                              ; @.str.18
	.asciz	"VIDIOCSYNC:\n"

l_.str.19:                              ; @.str.19
	.asciz	"VIDIOCMCAPTURE:\n"

l_.str.20:                              ; @.str.20
	.asciz	"VIDIOCGMBUF:\n"

l_.str.21:                              ; @.str.21
	.asciz	"VIDIOCGUNIT:\n"

l_.str.22:                              ; @.str.22
	.asciz	"VIDIOCGCAPTURE:\n"

l_.str.23:                              ; @.str.23
	.asciz	"VIDIOCSCAPTURE:\n"

l_.str.24:                              ; @.str.24
	.asciz	"VIDIOCSPLAYMODE:\n"

l_.str.25:                              ; @.str.25
	.asciz	"VIDIOCSWRITEMODE:\n"

l_.str.26:                              ; @.str.26
	.asciz	"VIDIOCGPLAYINFO:\n"

l_.str.27:                              ; @.str.27
	.asciz	"VIDIOCSMICROCODE:\n"

l_.str.28:                              ; @.str.28
	.asciz	"VIDIOCGVBIFMT:\n"

l_.str.29:                              ; @.str.29
	.asciz	"VIDIOCSVBIFMT:\n"

l_.str.30:                              ; @.str.30
	.asciz	"Unknown ioctl(0x%08x)\n"

	.comm	_ENOIOCTLCMD,8,3                ; @ENOIOCTLCMD
	.no_dead_strip	_ar_do_ioctl
.subsections_via_symbols
