	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_saa5246a_ioctl
_do_saa5246a_ioctl:                     ## @do_saa5246a_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_video_drvdata
	addl	$-128, %ebx
	cmpl	$11, %ebx
	ja	LBB0_15
## %bb.1:
	movq	%rax, %rdi
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_14:
	movq	(%r14), %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_saa5246a_stop_dau              ## TAILCALL
LBB0_7:
	movq	%r14, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_saa5246a_request_page          ## TAILCALL
LBB0_8:
	movq	(%r14), %rdx
	leaq	-20(%rbp), %rsi
	callq	_saa5246a_get_status
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	cltq
	jmp	LBB0_17
LBB0_13:
	movq	%r14, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_saa5246a_get_page              ## TAILCALL
LBB0_2:
	movq	_MAJOR_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_MINOR_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_NUM_DAUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_3:
	movq	(%r14), %rax
	movq	_NUM_DAUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_15
## %bb.4:
	movq	(%rdi), %rcx
	movl	(%rcx,%rax,4), %edi
	movl	$32, %esi
	movl	$4, %edx
	callq	_memset
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_5:
	movq	(%r14), %rsi
	movq	_NUM_DAUS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jae	LBB0_15
## %bb.6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_saa5246a_clear_found_bit       ## TAILCALL
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_16:
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_17:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movl	8(%r14), %edi
	leaq	-20(%rbp), %rsi
	movl	$4, %edx
	callq	_copy_to_user
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_MAJOR_VERSION,4,2              ## @MAJOR_VERSION
	.comm	_MINOR_VERSION,4,2              ## @MINOR_VERSION
	.comm	_NUM_DAUS,8,3                   ## @NUM_DAUS
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_EFAULT,8,3                     ## @EFAULT
	.no_dead_strip	_do_saa5246a_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_saa5246a_ioctl
_do_saa5246a_ioctl:                     ; @do_saa5246a_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_video_drvdata
	sub	w9, w20, #128
	cmp	w9, #11
	b.hi	LBB0_12
; %bb.1:
	mov	x8, x0
	mov	x0, #0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldr	x1, [x19]
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_saa5246a_stop_dau
LBB0_3:
	mov	x0, x8
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_saa5246a_request_page
LBB0_4:
	ldr	x2, [x19]
	add	x1, sp, #12
	mov	x0, x8
	bl	_saa5246a_get_status
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_15
; %bb.5:
	sxtw	x0, w0
	b	LBB0_14
LBB0_6:
	mov	x0, x8
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_saa5246a_get_page
LBB0_7:
	mov	x0, #0
Lloh2:
	adrp	x8, _MAJOR_VERSION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAJOR_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MINOR_VERSION@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MINOR_VERSION@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
Lloh8:
	adrp	x8, _NUM_DAUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NUM_DAUS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_14
LBB0_8:
	ldr	x9, [x19]
Lloh11:
	adrp	x10, _NUM_DAUS@GOTPAGE
Lloh12:
	ldr	x10, [x10, _NUM_DAUS@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.hs	LBB0_12
; %bb.9:
	ldr	x8, [x8]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #32
	mov	w2, #4
	bl	_memset
	mov	x0, #0
	b	LBB0_14
LBB0_10:
	ldr	x1, [x19]
Lloh14:
	adrp	x9, _NUM_DAUS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NUM_DAUS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x1, x9
	b.hs	LBB0_12
; %bb.11:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_saa5246a_clear_found_bit
LBB0_12:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_15:
	ldr	w0, [x19, #8]
	add	x1, sp, #12
	mov	w2, #4
	bl	_copy_to_user
	cbz	w0, LBB0_17
; %bb.16:
Lloh19:
	adrp	x8, _EFAULT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_13
LBB0_17:
	mov	x0, #0
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
                                        ; -- End function
	.comm	_MAJOR_VERSION,4,2              ; @MAJOR_VERSION
	.comm	_MINOR_VERSION,4,2              ; @MINOR_VERSION
	.comm	_NUM_DAUS,8,3                   ; @NUM_DAUS
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_EFAULT,8,3                     ; @EFAULT
	.no_dead_strip	_do_saa5246a_ioctl
.subsections_via_symbols
