	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vf_uart_bus_ipend
_vf_uart_bus_ipend:                     ## @vf_uart_bus_ipend
	.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	%rdi, %r14
	leaq	12(%rdi), %rbx
	movl	8(%rdi), %edi
	callq	_uart_lock
	movq	_UART_S1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_uart_getreg
	movl	%eax, %r12d
	movq	_UART_S2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_uart_getreg
	movl	%eax, %r15d
	movq	_UART_SFIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_uart_getreg
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_uart_setreg
	movq	_UART_S1_TDRE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_UART_C2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_uart_getreg
	movq	_UART_C2_TIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_uart_setreg
	xorl	%r13d, %r13d
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.3:
	movq	_SER_INT_TXIDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_4
LBB0_1:
	xorl	%r13d, %r13d
LBB0_4:
	movq	_UART_S1_RDRF@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_UART_C2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_uart_getreg
	movq	_UART_C2_RIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_uart_setreg
	movq	_SER_INT_RXREADY@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
LBB0_6:
	movq	_UART_S2_LBKDIF@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	je	LBB0_8
## %bb.7:
	movq	_SER_INT_BREAK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_8:
	orl	%r13d, %r15d
	movl	8(%r14), %edi
	callq	_uart_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UART_S1,4,2                    ## @UART_S1
	.comm	_UART_S2,4,2                    ## @UART_S2
	.comm	_UART_SFIFO,4,2                 ## @UART_SFIFO
	.comm	_UART_S1_TDRE,4,2               ## @UART_S1_TDRE
	.comm	_UART_C2,4,2                    ## @UART_C2
	.comm	_UART_C2_TIE,4,2                ## @UART_C2_TIE
	.comm	_SER_INT_TXIDLE,4,2             ## @SER_INT_TXIDLE
	.comm	_UART_S1_RDRF,4,2               ## @UART_S1_RDRF
	.comm	_UART_C2_RIE,4,2                ## @UART_C2_RIE
	.comm	_SER_INT_RXREADY,4,2            ## @SER_INT_RXREADY
	.comm	_UART_S2_LBKDIF,4,2             ## @UART_S2_LBKDIF
	.comm	_SER_INT_BREAK,4,2              ## @SER_INT_BREAK
	.no_dead_strip	_vf_uart_bus_ipend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vf_uart_bus_ipend
_vf_uart_bus_ipend:                     ; @vf_uart_bus_ipend
	.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
	mov	x19, x0
	add	x20, x0, #12
	ldr	w0, [x0, #8]
	bl	_uart_lock
Lloh0:
	adrp	x8, _UART_S1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UART_S1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_uart_getreg
	mov	x22, x0
Lloh3:
	adrp	x23, _UART_S2@GOTPAGE
Lloh4:
	ldr	x23, [x23, _UART_S2@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_uart_getreg
	mov	x21, x0
Lloh5:
	adrp	x8, _UART_SFIFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UART_SFIFO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_uart_getreg
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x21
	bl	_uart_setreg
Lloh8:
	adrp	x8, _UART_S1_TDRE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UART_S1_TDRE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x23, _UART_C2@GOTPAGE
Lloh12:
	ldr	x23, [x23, _UART_C2@GOTPAGEOFF]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_uart_getreg
Lloh13:
	adrp	x8, _UART_C2_TIE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UART_C2_TIE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x23]
	mov	x0, x20
	bl	_uart_setreg
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _SER_INT_TXIDLE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SER_INT_TXIDLE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w24, wzr, w9, eq
	b	LBB0_3
LBB0_2:
	mov	w24, #0
LBB0_3:
Lloh19:
	adrp	x8, _UART_S1_RDRF@GOTPAGE
Lloh20:
	ldr	x8, [x8, _UART_S1_RDRF@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_uart_getreg
Lloh22:
	adrp	x8, _UART_C2_RIE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _UART_C2_RIE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x23]
	mov	x0, x20
	bl	_uart_setreg
Lloh25:
	adrp	x8, _SER_INT_RXREADY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SER_INT_RXREADY@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	orr	w24, w8, w24
LBB0_5:
Lloh28:
	adrp	x8, _UART_S2_LBKDIF@GOTPAGE
Lloh29:
	ldr	x8, [x8, _UART_S2_LBKDIF@GOTPAGEOFF]
Lloh30:
	adrp	x9, _SER_INT_BREAK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SER_INT_BREAK@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	ldr	w9, [x9]
	tst	w8, w21
	csel	w8, wzr, w9, eq
	orr	w20, w8, w24
	ldr	w0, [x19, #8]
	bl	_uart_unlock
	mov	x0, 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	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_UART_S1,4,2                    ; @UART_S1
	.comm	_UART_S2,4,2                    ; @UART_S2
	.comm	_UART_SFIFO,4,2                 ; @UART_SFIFO
	.comm	_UART_S1_TDRE,4,2               ; @UART_S1_TDRE
	.comm	_UART_C2,4,2                    ; @UART_C2
	.comm	_UART_C2_TIE,4,2                ; @UART_C2_TIE
	.comm	_SER_INT_TXIDLE,4,2             ; @SER_INT_TXIDLE
	.comm	_UART_S1_RDRF,4,2               ; @UART_S1_RDRF
	.comm	_UART_C2_RIE,4,2                ; @UART_C2_RIE
	.comm	_SER_INT_RXREADY,4,2            ; @SER_INT_RXREADY
	.comm	_UART_S2_LBKDIF,4,2             ; @UART_S2_LBKDIF
	.comm	_SER_INT_BREAK,4,2              ; @SER_INT_BREAK
	.no_dead_strip	_vf_uart_bus_ipend
.subsections_via_symbols
