	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zr36060_control
_zr36060_control:                       ## @zr36060_control
	.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	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	(%rdi), %r15
	movl	24(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	callq	_dprintk
	addl	$-128, %ebx
	cmpl	$13, %ebx
	ja	LBB0_13
## %bb.1:
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_29
LBB0_3:
	cmpl	$4, %r12d
	jne	LBB0_28
## %bb.4:
	movl	(%r14), %eax
	movl	%eax, 4(%r15)
	addl	%eax, %eax
	leal	(%rax,%rax,2), %eax
	sarl	$3, %eax
	movl	%eax, 8(%r15)
	jmp	LBB0_27
LBB0_5:
	cmpl	$4, %r12d
	jne	LBB0_28
## %bb.6:
	movl	(%r14), %eax
	movl	%eax, 12(%r15)
	jmp	LBB0_27
LBB0_7:
	cmpl	$4, %r12d
	jne	LBB0_28
## %bb.8:
	movl	(%r14), %eax
	movl	%eax, 16(%r15)
	jmp	LBB0_27
LBB0_9:
	cmpl	$4, %r12d
	jne	LBB0_28
## %bb.10:
	movl	(%r14), %eax
	movl	%eax, 20(%r15)
	jmp	LBB0_27
LBB0_11:
	cmpl	$4, %r12d
	jne	LBB0_28
## %bb.12:
	movl	(%r14), %ecx
	movq	_CODEC_MODE_BJPG@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_30
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_29
LBB0_14:
	cmpl	$4, %r12d
	jne	LBB0_28
## %bb.15:
	movq	%r15, %rdi
	callq	_zr36060_read_status
	movl	(%r15), %eax
	jmp	LBB0_26
LBB0_16:
	cmpl	$4, %r12d
	jne	LBB0_28
## %bb.17:
	movl	4(%r15), %eax
	jmp	LBB0_26
LBB0_18:
	cmpl	$4, %r12d
	jne	LBB0_28
## %bb.19:
	movq	%r15, %rdi
	callq	_zr36060_read_scalefactor
	jmp	LBB0_26
LBB0_20:
	cmpl	$4, %r12d
	jne	LBB0_28
## %bb.21:
	movl	16(%r15), %eax
	jmp	LBB0_26
LBB0_22:
	cmpl	$4, %r12d
	jne	LBB0_28
## %bb.23:
	movl	20(%r15), %eax
	jmp	LBB0_26
LBB0_24:
	cmpl	$4, %r12d
	jne	LBB0_28
## %bb.25:
	movq	_CODEC_MODE_BJPG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_26:
	movl	%eax, (%r14)
LBB0_27:
	movl	$4, %eax
	jmp	LBB0_30
LBB0_28:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
LBB0_29:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_30:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_30, LBB0_30-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
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_30
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_30
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_20
	.long	L0_0_set_22
	.long	L0_0_set_24
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: control %d call with %d byte\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_CODEC_MODE_BJPG,4,2            ## @CODEC_MODE_BJPG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_zr36060_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zr36060_control
_zr36060_control:                       ; @zr36060_control
	.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, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x20, [x0]
	ldr	w2, [x20, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x3, x22
	mov	x4, x21
	bl	_dprintk
	sub	w8, w22, #128
	cmp	w8, #13
	b.hi	LBB0_20
; %bb.1:
	mov	w0, #0
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	x8, _ENXIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_29
LBB0_3:
	cmp	w21, #4
	b.ne	LBB0_28
; %bb.4:
	ldr	w8, [x19]
	add	w9, w8, w8, lsl #1
	sbfx	w9, w9, #2, #29
	stp	w8, w9, [x20, #4]
	mov	w0, #4
	b	LBB0_30
LBB0_5:
	cmp	w21, #4
	b.ne	LBB0_28
; %bb.6:
	ldr	w8, [x19]
	str	w8, [x20, #12]
	mov	w0, #4
	b	LBB0_30
LBB0_7:
	cmp	w21, #4
	b.ne	LBB0_28
; %bb.8:
	ldr	w8, [x20, #4]
	b	LBB0_27
LBB0_9:
	cmp	w21, #4
	b.ne	LBB0_28
; %bb.10:
	ldr	w8, [x20, #16]
	b	LBB0_27
LBB0_11:
	cmp	w21, #4
	b.ne	LBB0_28
; %bb.12:
	ldr	w8, [x20, #20]
	b	LBB0_27
LBB0_13:
	cmp	w21, #4
	b.ne	LBB0_28
; %bb.14:
	ldr	w8, [x19]
	str	w8, [x20, #16]
	mov	w0, #4
	b	LBB0_30
LBB0_15:
	cmp	w21, #4
	b.ne	LBB0_28
; %bb.16:
	ldr	w8, [x19]
	str	w8, [x20, #20]
	mov	w0, #4
	b	LBB0_30
LBB0_17:
	cmp	w21, #4
	b.ne	LBB0_28
; %bb.18:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _CODEC_MODE_BJPG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CODEC_MODE_BJPG@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.19:
	mov	w0, #0
	b	LBB0_30
LBB0_20:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_29
LBB0_21:
	cmp	w21, #4
	b.ne	LBB0_28
; %bb.22:
	mov	x0, x20
	bl	_zr36060_read_status
	ldr	w8, [x20]
	b	LBB0_27
LBB0_23:
	cmp	w21, #4
	b.ne	LBB0_28
; %bb.24:
	mov	x0, x20
	bl	_zr36060_read_scalefactor
	str	w0, [x19]
	mov	w0, #4
	b	LBB0_30
LBB0_25:
	cmp	w21, #4
	b.ne	LBB0_28
; %bb.26:
Lloh11:
	adrp	x8, _CODEC_MODE_BJPG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CODEC_MODE_BJPG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
LBB0_27:
	str	w8, [x19]
	mov	w0, #4
	b	LBB0_30
LBB0_28:
Lloh14:
	adrp	x8, _EFAULT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_30:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_30-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_30-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_25-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: control %d call with %d byte\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_CODEC_MODE_BJPG,4,2            ; @CODEC_MODE_BJPG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_zr36060_control
.subsections_via_symbols
