	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serial167_console_write        ## -- Begin function serial167_console_write
	.p2align	4, 0x90
_serial167_console_write:               ## @serial167_console_write
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	_BASE_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	callq	_local_irq_save
	movq	_CyCAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	$0, (%rbx,%rax)
	movq	_CyCCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbx,%rax)
	jne	LBB0_1
## %bb.2:
	movq	_CyENB_XMTR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, (%rbx,%rax)
	movq	_CyIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	(%rbx,%rax), %cl
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	movq	_CyTxMpty@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, (%rbx,%rax)
	xorl	%esi, %esi
	movq	_pcc2chip@GOTPCREL(%rip), %r12
	movq	_PccSCCTICR@GOTPCREL(%rip), %r13
	movq	_PccTPIACKR@GOTPCREL(%rip), %r9
	movq	_CyLICR@GOTPCREL(%rip), %rcx
	movq	_CyTEOIR@GOTPCREL(%rip), %r10
	movq	_CyNOTRANS@GOTPCREL(%rip), %r11
	xorl	%edx, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	(%r11), %r8b
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r10), %rax
	movb	%r8b, (%rbx,%rax)
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	(%r12), %rdi
	movq	(%r13), %rax
	movl	(%rdi,%rax,4), %eax
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testb	$32, %al
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r9), %rax
	movl	(%rdi,%rax,4), %eax
	movl	%eax, -48(%rbp)
	movq	(%rcx), %rax
	movb	(%rbx,%rax), %al
	cmpb	$3, %al
	ja	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r14d, %edx
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%esi, %esi
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	(%r15), %al
	cmpb	$10, %al
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_CyTDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	$13, (%rbx,%rax)
	movl	$1, %esi
	xorl	%r8d, %r8d
	jmp	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_CyTDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	$10, (%rbx,%rax)
	incq	%r15
	jmp	LBB0_9
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movq	_CyTDR@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movb	%al, (%rbx,%rsi)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%edx
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	jmp	LBB0_14
LBB0_15:
	movb	(%r11), %al
	movq	(%r10), %rcx
	movb	%al, (%rbx,%rcx)
	movq	_CyIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, (%rbx,%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_local_irq_restore              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BASE_ADDR,8,3                  ## @BASE_ADDR
	.comm	_CyCAR,8,3                      ## @CyCAR
	.comm	_CyCCR,8,3                      ## @CyCCR
	.comm	_CyENB_XMTR,1,0                 ## @CyENB_XMTR
	.comm	_CyIER,8,3                      ## @CyIER
	.comm	_CyTxMpty,1,0                   ## @CyTxMpty
	.comm	_pcc2chip,8,3                   ## @pcc2chip
	.comm	_PccSCCTICR,8,3                 ## @PccSCCTICR
	.comm	_PccTPIACKR,8,3                 ## @PccTPIACKR
	.comm	_CyLICR,8,3                     ## @CyLICR
	.comm	_CyNOTRANS,1,0                  ## @CyNOTRANS
	.comm	_CyTEOIR,8,3                    ## @CyTEOIR
	.comm	_CyTDR,8,3                      ## @CyTDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serial167_console_write        ; -- Begin function serial167_console_write
	.p2align	2
_serial167_console_write:               ; @serial167_console_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _BASE_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BASE_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	bl	_local_irq_save
Lloh3:
	adrp	x8, _CyCAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CyCAR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	strb	wzr, [x21, x8]
Lloh6:
	adrp	x8, _CyCCR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CyCCR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x21, x8]
	cbnz	w9, LBB0_1
; %bb.2:
	mov	w11, #0
Lloh9:
	adrp	x10, _CyENB_XMTR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CyENB_XMTR@GOTPAGEOFF]
	ldrb	w10, [x10]
	strb	w10, [x21, x8]
Lloh11:
	adrp	x8, _CyIER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CyIER@GOTPAGEOFF]
	ldr	x12, [x8]
	ldrb	w10, [x21, x12]
Lloh13:
	adrp	x13, _CyTxMpty@GOTPAGE
Lloh14:
	ldr	x13, [x13, _CyTxMpty@GOTPAGEOFF]
	ldrb	w13, [x13]
	strb	w13, [x21, x12]
Lloh15:
	adrp	x12, _pcc2chip@GOTPAGE
Lloh16:
	ldr	x12, [x12, _pcc2chip@GOTPAGEOFF]
Lloh17:
	adrp	x13, _PccSCCTICR@GOTPAGE
Lloh18:
	ldr	x13, [x13, _PccSCCTICR@GOTPAGEOFF]
Lloh19:
	adrp	x14, _PccTPIACKR@GOTPAGE
Lloh20:
	ldr	x14, [x14, _PccTPIACKR@GOTPAGEOFF]
Lloh21:
	adrp	x15, _CyLICR@GOTPAGE
Lloh22:
	ldr	x15, [x15, _CyLICR@GOTPAGEOFF]
Lloh23:
	adrp	x16, _CyTDR@GOTPAGE
Lloh24:
	ldr	x16, [x16, _CyTDR@GOTPAGEOFF]
	mov	w0, #13
	mov	w1, #10
Lloh25:
	adrp	x17, _CyTEOIR@GOTPAGE
Lloh26:
	ldr	x17, [x17, _CyTEOIR@GOTPAGEOFF]
Lloh27:
	adrp	x2, _CyNOTRANS@GOTPAGE
Lloh28:
	ldr	x2, [x2, _CyNOTRANS@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w3, [x2]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x4, [x17]
	strb	w3, [x21, x4]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x3, [x12]
	ldr	x4, [x13]
	ldr	w4, [x3, x4, lsl #2]
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbz	w4, #5, LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x4, [x14]
	ldr	w3, [x3, x4, lsl #2]
	str	w3, [sp, #12]
	ldr	x3, [x15]
	ldrb	w3, [x21, x3]
	cmp	w3, #3
	b.hi	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, w19
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w11, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w4, [x20]
	cmp	w4, #10
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w3, #0
	ldr	x11, [x16]
	strb	w0, [x21, x11]
	mov	w11, #1
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w3, #0
	mov	w11, #0
	ldr	x4, [x16]
	strb	w1, [x21, x4]
	add	x20, x20, #1
	add	w9, w9, #1
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w3, #0
	mov	w11, #0
	add	x20, x20, #1
	ldr	x5, [x16]
	strb	w4, [x21, x5]
	add	w9, w9, #1
	b	LBB0_4
LBB0_14:
	ldrb	w9, [x2]
	ldr	x11, [x17]
	strb	w9, [x21, x11]
	ldr	x8, [x8]
	strb	w10, [x21, x8]
	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
	add	sp, sp, #64
	b	_local_irq_restore
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BASE_ADDR,8,3                  ; @BASE_ADDR
	.comm	_CyCAR,8,3                      ; @CyCAR
	.comm	_CyCCR,8,3                      ; @CyCCR
	.comm	_CyENB_XMTR,1,0                 ; @CyENB_XMTR
	.comm	_CyIER,8,3                      ; @CyIER
	.comm	_CyTxMpty,1,0                   ; @CyTxMpty
	.comm	_pcc2chip,8,3                   ; @pcc2chip
	.comm	_PccSCCTICR,8,3                 ; @PccSCCTICR
	.comm	_PccTPIACKR,8,3                 ; @PccTPIACKR
	.comm	_CyLICR,8,3                     ; @CyLICR
	.comm	_CyNOTRANS,1,0                  ; @CyNOTRANS
	.comm	_CyTEOIR,8,3                    ; @CyTEOIR
	.comm	_CyTDR,8,3                      ; @CyTDR
.subsections_via_symbols
