	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_txrx_fifo
_process_txrx_fifo:                     ## @process_txrx_fifo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_PORT_16450@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.1:
	movq	_PORT_8250@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.2:
	movq	_UART_INFO_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.3:
	movq	24(%rdi), %rax
	movq	(%rax), %rdx
	movq	_Gpci_uart_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rax,%rcx), %rdx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$24, %rcx
	cmpq	%rcx, %rsi
	jne	LBB0_4
LBB0_9:
	popq	%rbp
	retq
LBB0_7:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%rdi)
	movl	$1, 16(%rdi)
	movl	$1, %eax
	jmp	LBB0_8
LBB0_5:
	movl	8(%rax,%rcx), %edx
	movl	%edx, 8(%rdi)
	movl	12(%rax,%rcx), %edx
	movl	%edx, 16(%rdi)
	movl	16(%rax,%rcx), %edx
	movl	%edx, 12(%rdi)
	movl	20(%rax,%rcx), %eax
LBB0_8:
	movl	%eax, 20(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_16450,8,3                 ## @PORT_16450
	.comm	_PORT_8250,8,3                  ## @PORT_8250
	.comm	_UART_INFO_NUM,4,2              ## @UART_INFO_NUM
	.comm	_Gpci_uart_info,8,3             ## @Gpci_uart_info
	.no_dead_strip	_process_txrx_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_txrx_fifo
_process_txrx_fifo:                     ; @process_txrx_fifo
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PORT_16450@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PORT_16450@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PORT_8250@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PORT_8250@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	movi.2s	v0, #1
	str	d0, [x0, #8]
	mov	w8, #1
	str	w8, [x0, #16]
	b	LBB0_8
LBB0_2:
Lloh6:
	adrp	x8, _UART_INFO_NUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UART_INFO_NUM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	x9, [x0, #24]
	ldr	x10, [x9]
Lloh9:
	adrp	x9, _Gpci_uart_info@GOTPAGE
Lloh10:
	ldr	x9, [x9, _Gpci_uart_info@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x9, x9, #12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-12]
	cmp	x10, x11
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #24
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_6:
	ret
LBB0_7:
	ldur	w8, [x9, #-4]
	str	w8, [x0, #8]
	ldr	d0, [x9]
	rev64.2s	v0, v0
	stur	d0, [x0, #12]
	ldr	w8, [x9, #8]
LBB0_8:
	str	w8, [x0, #20]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_16450,8,3                 ; @PORT_16450
	.comm	_PORT_8250,8,3                  ; @PORT_8250
	.comm	_UART_INFO_NUM,4,2              ; @UART_INFO_NUM
	.comm	_Gpci_uart_info,8,3             ; @Gpci_uart_info
	.no_dead_strip	_process_txrx_fifo
.subsections_via_symbols
