	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetBaudRate
_SetBaudRate:                           ## @SetBaudRate
	.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, %r15d
	movl	%edi, %r14d
	callq	_IsSIROn
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movl	$44, %ebx
	cmpl	$38399, %r15d                   ## imm = 0x95FF
	jle	LBB0_2
## %bb.5:
	cmpl	$38400, %r15d                   ## imm = 0x9600
	je	LBB0_10
## %bb.6:
	cmpl	$57600, %r15d                   ## imm = 0xE100
	je	LBB0_11
## %bb.7:
	cmpl	$115200, %r15d                  ## imm = 0x1C200
	jne	LBB0_14
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_12:
	movl	%r14d, %edi
	callq	_IsMIROn
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movl	%r14d, %edi
	callq	_IsFIROn
	xorl	%ecx, %ecx
	testq	%rax, %rax
	movl	$44, %ebx
	cmovnel	%ecx, %ebx
	jmp	LBB0_14
LBB0_2:
	cmpl	$2400, %r15d                    ## imm = 0x960
	je	LBB0_9
## %bb.3:
	cmpl	$19200, %r15d                   ## imm = 0x4B00
	jne	LBB0_14
## %bb.4:
	movl	$20, %ebx
	jmp	LBB0_14
LBB0_10:
	movl	$8, %ebx
	jmp	LBB0_14
LBB0_11:
	movl	$4, %ebx
	jmp	LBB0_14
LBB0_9:
	movl	$188, %ebx
LBB0_14:
	movq	_I_CF_H_1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%r14d, %edi
	callq	_ReadReg
	andl	$3, %eax
	orl	%eax, %ebx
	movl	(%r15), %esi
	movl	%r14d, %edi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WriteReg                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I_CF_H_1,4,2                   ## @I_CF_H_1
	.no_dead_strip	_SetBaudRate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetBaudRate
_SetBaudRate:                           ; @SetBaudRate
	.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	x20, x1
	mov	x19, x0
	bl	_IsSIROn
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #44
	mov	w9, #38399
	mov	w10, #38400
	mov	w11, #8
	mov	w12, #57600
	mov	w13, #4
	mov	w14, #49664
	movk	w14, #1, lsl #16
	cmp	w20, w14
	csel	w14, wzr, w8, eq
	cmp	w20, w12
	csel	w12, w13, w14, eq
	cmp	w20, w10
	csel	w10, w11, w12, eq
	mov	w11, #188
	mov	w12, #19200
	mov	w13, #20
	cmp	w20, w12
	csel	w8, w13, w8, eq
	cmp	w20, #2400
	csel	w8, w11, w8, eq
	cmp	w20, w9
	csel	w20, w10, w8, gt
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_IsMIROn
	cbz	x0, LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_IsFIROn
	cmp	x0, #0
	mov	w8, #44
	csel	w20, w8, wzr, eq
LBB0_5:
Lloh0:
	adrp	x21, _I_CF_H_1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I_CF_H_1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ReadReg
	and	w8, w0, #0x3
	orr	w2, w8, w20
	ldr	w1, [x21]
	mov	x0, x19
	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
	b	_WriteReg
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_I_CF_H_1,4,2                   ; @I_CF_H_1
	.no_dead_strip	_SetBaudRate
.subsections_via_symbols
