	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7183_s_routing
_adv7183_s_routing:                     ## @adv7183_s_routing
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_to_adv7183
	cmpq	$141, %rbx
	jg	LBB0_2
## %bb.1:
	cmpq	$144, %r14
	jge	LBB0_2
## %bb.3:
	movq	%rax, %r15
	cmpq	%rbx, (%rax)
	je	LBB0_21
## %bb.4:
	movq	%rbx, (%r15)
	movq	_ADV7183_IN_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_adv7183_read
	andl	$240, %eax
	addq	$-128, %rbx
	cmpq	$13, %rbx
	ja	LBB0_20
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_18:
	orl	$8, %eax
	jmp	LBB0_20
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_17:
	orl	$7, %eax
	jmp	LBB0_20
LBB0_16:
	orl	$6, %eax
	jmp	LBB0_20
LBB0_14:
	orl	$14, %eax
	jmp	LBB0_20
LBB0_13:
	orl	$13, %eax
	jmp	LBB0_20
LBB0_12:
	orl	$12, %eax
	jmp	LBB0_20
LBB0_11:
	orl	$11, %eax
	jmp	LBB0_20
LBB0_10:
	orl	$5, %eax
	jmp	LBB0_20
LBB0_9:
	orl	$4, %eax
	jmp	LBB0_20
LBB0_8:
	orl	$3, %eax
	jmp	LBB0_20
LBB0_7:
	orl	$2, %eax
	jmp	LBB0_20
LBB0_15:
	orl	$15, %eax
	jmp	LBB0_20
LBB0_6:
	orl	$1, %eax
	jmp	LBB0_20
LBB0_19:
	orl	$10, %eax
LBB0_20:
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_adv7183_write
LBB0_21:
	xorl	%ebx, %ebx
	cmpq	%r14, 8(%r15)
	je	LBB0_23
## %bb.22:
	movq	%r14, 8(%r15)
	movq	_ADV7183_OUT_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_adv7183_read
	andl	$192, %eax
	xorl	%ecx, %ecx
	cmpq	$143, %r14
	setne	%cl
	leal	(%rcx,%rcx,2), %edx
	orl	%eax, %edx
	addl	$9, %edx
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_adv7183_write
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_17
	.long	L0_0_set_16
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_15
	.long	L0_0_set_6
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ADV7183_IN_CTRL,4,2            ## @ADV7183_IN_CTRL
	.comm	_ADV7183_OUT_CTRL,4,2           ## @ADV7183_OUT_CTRL
	.no_dead_strip	_adv7183_s_routing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7183_s_routing
_adv7183_s_routing:                     ; @adv7183_s_routing
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_to_adv7183
	cmp	x22, #141
	b.gt	LBB0_6
; %bb.1:
	cmp	x20, #144
	b.ge	LBB0_6
; %bb.2:
	mov	x21, x0
	ldr	x8, [x0]
	cmp	x8, x22
	b.eq	LBB0_22
; %bb.3:
	str	x22, [x21]
Lloh0:
	adrp	x23, _ADV7183_IN_CTRL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ADV7183_IN_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_adv7183_read
	and	w2, w0, #0xf0
	sub	x8, x22, #128
	cmp	x8, #13
	b.hi	LBB0_21
; %bb.4:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	orr	w2, w2, #0x8
	b	LBB0_21
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
LBB0_7:
	orr	w2, w2, #0x7
	b	LBB0_21
LBB0_8:
	orr	w2, w2, #0x6
	b	LBB0_21
LBB0_9:
	orr	w2, w2, #0xe
	b	LBB0_21
LBB0_10:
	mov	w8, #13
	b	LBB0_20
LBB0_11:
	orr	w2, w2, #0xc
	b	LBB0_21
LBB0_12:
	mov	w8, #11
	b	LBB0_20
LBB0_13:
	mov	w8, #5
	b	LBB0_20
LBB0_14:
	orr	w2, w2, #0x4
	b	LBB0_21
LBB0_15:
	orr	w2, w2, #0x3
	b	LBB0_21
LBB0_16:
	orr	w2, w2, #0x2
	b	LBB0_21
LBB0_17:
	orr	w2, w2, #0xf
	b	LBB0_21
LBB0_18:
	orr	w2, w2, #0x1
	b	LBB0_21
LBB0_19:
	mov	w8, #10
LBB0_20:
	orr	w2, w2, w8
LBB0_21:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_adv7183_write
LBB0_22:
	ldr	x8, [x21, #8]
	cmp	x8, x20
	b.eq	LBB0_24
; %bb.23:
	str	x20, [x21, #8]
Lloh7:
	adrp	x21, _ADV7183_OUT_CTRL@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ADV7183_OUT_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_adv7183_read
	and	w8, w0, #0xc0
	cmp	x20, #143
	mov	w9, #12
	mov	w10, #9
	csel	w9, w10, w9, eq
	orr	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	bl	_adv7183_write
LBB0_24:
	mov	w0, #0
LBB0_25:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_16-LBB0_5)>>2
	.byte	(LBB0_17-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_19-LBB0_5)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADV7183_IN_CTRL,4,2            ; @ADV7183_IN_CTRL
	.comm	_ADV7183_OUT_CTRL,4,2           ; @ADV7183_OUT_CTRL
	.no_dead_strip	_adv7183_s_routing
.subsections_via_symbols
