	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7185_s_routing
_saa7185_s_routing:                     ## @saa7185_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_to_saa7185
	movq	%rax, %r14
	cmpl	$2, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$1, %ebx
	je	LBB0_5
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	movl	$58, %esi
	movl	$15, %edx
	jmp	LBB0_4
LBB0_6:
	movq	%r15, %rdi
	movl	$58, %esi
	movl	$143, %edx
LBB0_4:
	callq	_saa7185_write
	movq	(%r14), %rax
	movzbl	388(%rax), %edx
	orl	$8, %edx
	movq	%r15, %rdi
	movl	$97, %esi
	callq	_saa7185_write
	movq	%r15, %rdi
	movl	$110, %esi
	movl	$1, %edx
	callq	_saa7185_write
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	%r15, %rdi
	movl	$58, %esi
	movl	$15, %edx
	callq	_saa7185_write
	movq	(%r14), %rax
	movl	$247, %edx
	andl	388(%rax), %edx
	movq	%r15, %rdi
	movl	$97, %esi
	callq	_saa7185_write
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$110, %esi
	xorl	%edx, %edx
	callq	_saa7185_write
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_saa7185_s_routing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7185_s_routing
_saa7185_s_routing:                     ; @saa7185_s_routing
	.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	x21, x1
	mov	x19, x0
	bl	_to_saa7185
	mov	x20, x0
	cmp	w21, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w21, #1
	b.eq	LBB0_6
; %bb.2:
	cbnz	w21, LBB0_8
; %bb.3:
	mov	x0, x19
	mov	w1, #58
	mov	w2, #15
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	w1, #58
	mov	w2, #143
LBB0_5:
	bl	_saa7185_write
	ldr	x8, [x20]
	ldr	w8, [x8, #388]
	and	w8, w8, #0xff
	orr	w2, w8, #0x8
	mov	x0, x19
	mov	w1, #97
	bl	_saa7185_write
	mov	x0, x19
	mov	w1, #110
	mov	w2, #1
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	w1, #58
	mov	w2, #15
	bl	_saa7185_write
	ldr	x8, [x20]
	ldr	w8, [x8, #388]
	mov	w9, #247
	and	w2, w8, w9
	mov	x0, x19
	mov	w1, #97
	bl	_saa7185_write
	mov	x0, x19
	mov	w1, #110
	mov	w2, #0
LBB0_7:
	bl	_saa7185_write
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_saa7185_s_routing
.subsections_via_symbols
