	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uart_legacy_alloc              ## -- Begin function uart_legacy_alloc
	.p2align	4, 0x90
_uart_legacy_alloc:                     ## @uart_legacy_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %eax
	testl	%edi, %edi
	js	LBB0_4
## %bb.1:
	movq	_UART_NLDEVS@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jle	LBB0_4
## %bb.2:
	movq	_uart_lres@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%edi, %edi
	leaq	(%rdi,%rdi,2), %rdi
	cmpl	$0, (%rcx,%rdi,4)
	je	LBB0_3
LBB0_4:
	popq	%rbp
	retq
LBB0_3:
	leaq	(%rcx,%rdi,4), %rax
	movl	$1, (%rax)
	movl	4(%rcx,%rdi,4), %eax
	movl	%eax, (%rsi)
	movl	8(%rcx,%rdi,4), %eax
	movl	%eax, (%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UART_NLDEVS,4,2                ## @UART_NLDEVS
	.comm	_uart_lres,8,3                  ## @uart_lres
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uart_legacy_alloc              ; -- Begin function uart_legacy_alloc
	.p2align	2
_uart_legacy_alloc:                     ; @uart_legacy_alloc
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	w0, #-1
	tbnz	w8, #31, LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, _UART_NLDEVS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UART_NLDEVS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w8
	b.le	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, _uart_lres@GOTPAGE
Lloh4:
	ldr	x9, [x9, _uart_lres@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #12
	umaddl	x10, w8, w10, x9
	ldr	w11, [x10]
	cbz	w11, LBB0_4
; %bb.3:
	mov	w0, #-1
	ret
LBB0_4:
	mov	w0, #0
	mov	w8, w8
	mov	w11, #1
	str	w11, [x10]
	mov	w10, #12
	madd	x8, x8, x10, x9
	ldr	w9, [x8, #4]
	str	w9, [x1]
	ldr	w8, [x8, #8]
	str	w8, [x2]
LBB0_5:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UART_NLDEVS,4,2                ; @UART_NLDEVS
	.comm	_uart_lres,8,3                  ; @uart_lres
.subsections_via_symbols
