	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_pulse
_send_pulse:                            ## @send_pulse
	.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	_TIME_CONST@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_1:
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	cmpq	%rdi, %rcx
	movl	$1, %r15d
	cmovbeq	%rax, %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.4:
	movq	_io@GOTPCREL(%rip), %r13
	movq	_UART_TX@GOTPCREL(%rip), %r12
	movq	_UART_LSR@GOTPCREL(%rip), %rbx
	movq	_UART_LSR_THRE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	_PULSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	addq	(%r13), %rsi
	callq	_outb
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rdi
	addq	(%r13), %rdi
	callq	_inb
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	decq	%r15
	jne	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIME_CONST,8,3                 ## @TIME_CONST
	.comm	_PULSE,4,2                      ## @PULSE
	.comm	_io,8,3                         ## @io
	.comm	_UART_TX,8,3                    ## @UART_TX
	.comm	_UART_LSR,8,3                   ## @UART_LSR
	.comm	_UART_LSR_THRE,4,2              ## @UART_LSR_THRE
	.no_dead_strip	_send_pulse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_pulse
_send_pulse:                            ; @send_pulse
	.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
Lloh0:
	adrp	x8, _TIME_CONST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIME_CONST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	udiv	x9, x0, x8
	cmp	x8, x0
	csinc	x19, x9, xzr, ls
	cbz	x19, LBB0_5
; %bb.1:
Lloh3:
	adrp	x20, _PULSE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PULSE@GOTPAGEOFF]
Lloh5:
	adrp	x21, _io@GOTPAGE
Lloh6:
	ldr	x21, [x21, _io@GOTPAGEOFF]
Lloh7:
	adrp	x22, _UART_TX@GOTPAGE
Lloh8:
	ldr	x22, [x22, _UART_TX@GOTPAGEOFF]
Lloh9:
	adrp	x23, _UART_LSR@GOTPAGE
Lloh10:
	ldr	x23, [x23, _UART_LSR@GOTPAGEOFF]
Lloh11:
	adrp	x24, _UART_LSR_THRE@GOTPAGE
Lloh12:
	ldr	x24, [x24, _UART_LSR_THRE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	w0, [x20]
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_outb
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_inb
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	x19, x19, #1
	b.ne	LBB0_2
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TIME_CONST,8,3                 ; @TIME_CONST
	.comm	_PULSE,4,2                      ; @PULSE
	.comm	_io,8,3                         ; @io
	.comm	_UART_TX,8,3                    ; @UART_TX
	.comm	_UART_LSR,8,3                   ; @UART_LSR
	.comm	_UART_LSR_THRE,4,2              ; @UART_LSR_THRE
	.no_dead_strip	_send_pulse
.subsections_via_symbols
