	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vf_uart_bus_attach
_vf_uart_bus_attach:                    ## @vf_uart_bus_attach
	.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
	movq	%rdi, %rbx
	leaq	24(%rdi), %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rdi)
	movl	$66000000, %esi                 ## imm = 0x3EF1480
	movl	$115200, %edx                   ## imm = 0x1C200
	callq	_uart_reinit
	movq	_UART_C2@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_uart_getreg
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	movq	(%rcx), %rcx
	movq	_UART_DEV_CONSOLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movq	_UART_C2_RIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	jmp	LBB0_4
LBB0_3:
	movq	_UART_C2_RIE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_4:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_uart_setreg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UART_C2,4,2                    ## @UART_C2
	.comm	_UART_DEV_CONSOLE,8,3           ## @UART_DEV_CONSOLE
	.comm	_UART_C2_RIE,4,2                ## @UART_C2_RIE
	.no_dead_strip	_vf_uart_bus_attach
.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_attach
_vf_uart_bus_attach:                    ; @vf_uart_bus_attach
	.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, x0
	add	x19, x0, #24
	stp	xzr, xzr, [x0, #8]
	mov	w1, #5248
	movk	w1, #1007, lsl #16
	mov	w2, #49664
	movk	w2, #1, lsl #16
	bl	_uart_reinit
Lloh0:
	adrp	x21, _UART_C2@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UART_C2@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_uart_getreg
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _UART_DEV_CONSOLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UART_DEV_CONSOLE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _UART_C2_RIE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UART_C2_RIE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w2, w0, w8
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _UART_C2_RIE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UART_C2_RIE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w2, w8, w0
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_uart_setreg
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_UART_C2,4,2                    ; @UART_C2
	.comm	_UART_DEV_CONSOLE,8,3           ; @UART_DEV_CONSOLE
	.comm	_UART_C2_RIE,4,2                ; @UART_C2_RIE
	.no_dead_strip	_vf_uart_bus_attach
.subsections_via_symbols
