	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_at91_init_uarts                ## -- Begin function at91_init_uarts
	.p2align	4, 0x90
_at91_init_uarts:                       ## @at91_init_uarts
	.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	_port_detected@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_AT91F_DBGU_CfgPIO
	xorl	%eax, %eax
	callq	_AT91F_US0_CfgPIO
	xorl	%eax, %eax
	callq	_AT91F_US0_CfgPMC
	movq	_MAX_UARTS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_us@GOTPCREL(%rip), %r12
	movq	_AT91C_MASTER_CLOCK@GOTPCREL(%rip), %r13
	movq	_AT91C_US_ASYNC_MODE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_usa@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%rdi, (%r12)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_AT91F_US_ResetRx
	movl	(%r12), %edi
	callq	_AT91F_US_ResetTx
	movl	(%r12), %edi
	movl	(%r13), %esi
	movl	(%r14), %edx
	movl	$115200, %ecx                   ## imm = 0x1C200
	xorl	%r8d, %r8d
	callq	_AT91F_US_Configure
	movl	(%r12), %edi
	callq	_AT91F_US_EnableTx
	movl	(%r12), %edi
	callq	_AT91F_US_EnableRx
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_usa@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_us@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_port_detected,8,3              ## @port_detected
	.comm	_MAX_UARTS,4,2                  ## @MAX_UARTS
	.comm	_usa,8,3                        ## @usa
	.comm	_us,8,3                         ## @us
	.comm	_AT91C_MASTER_CLOCK,4,2         ## @AT91C_MASTER_CLOCK
	.comm	_AT91C_US_ASYNC_MODE,4,2        ## @AT91C_US_ASYNC_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_at91_init_uarts                ; -- Begin function at91_init_uarts
	.p2align	2
_at91_init_uarts:                       ; @at91_init_uarts
	.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
Lloh0:
	adrp	x8, _port_detected@GOTPAGE
Lloh1:
	ldr	x8, [x8, _port_detected@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
	bl	_AT91F_DBGU_CfgPIO
	bl	_AT91F_US0_CfgPIO
	bl	_AT91F_US0_CfgPMC
Lloh3:
	adrp	x19, _MAX_UARTS@GOTPAGE
Lloh4:
	ldr	x19, [x19, _MAX_UARTS@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh5:
	adrp	x21, _usa@GOTPAGE
Lloh6:
	ldr	x21, [x21, _usa@GOTPAGEOFF]
Lloh7:
	adrp	x20, _us@GOTPAGE
Lloh8:
	ldr	x20, [x20, _us@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
Lloh9:
	adrp	x23, _AT91C_MASTER_CLOCK@GOTPAGE
Lloh10:
	ldr	x23, [x23, _AT91C_MASTER_CLOCK@GOTPAGEOFF]
Lloh11:
	adrp	x24, _AT91C_US_ASYNC_MODE@GOTPAGE
Lloh12:
	ldr	x24, [x24, _AT91C_US_ASYNC_MODE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8, x22, lsl #3]
	str	x0, [x20]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_AT91F_US_ResetRx
	ldr	w0, [x20]
	bl	_AT91F_US_ResetTx
	ldr	w0, [x20]
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	w3, #49664
	movk	w3, #1, lsl #16
	mov	w4, #0
	bl	_AT91F_US_Configure
	ldr	w0, [x20]
	bl	_AT91F_US_EnableTx
	ldr	w0, [x20]
	bl	_AT91F_US_EnableRx
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x21]
	ldr	x8, [x8]
	str	x8, [x20]
	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	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_port_detected,8,3              ; @port_detected
	.comm	_MAX_UARTS,4,2                  ; @MAX_UARTS
	.comm	_usa,8,3                        ; @usa
	.comm	_us,8,3                         ; @us
	.comm	_AT91C_MASTER_CLOCK,4,2         ; @AT91C_MASTER_CLOCK
	.comm	_AT91C_US_ASYNC_MODE,4,2        ; @AT91C_US_ASYNC_MODE
.subsections_via_symbols
