	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendchar                       ## -- Begin function sendchar
	.p2align	4, 0x90
_sendchar:                              ## @sendchar
	.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	%edi, %r13d
	xorl	%eax, %eax
	callq	_usb_configured
	movl	$-1, %r15d
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movq	_SREG@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	xorl	%eax, %eax
	callq	_cli
	movq	_DEBUG_TX_ENDPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_UENUM@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_RWAL@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	_UEINTX@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	cmpb	$1, _sendchar.previous_timeout(%rip)
	jne	LBB0_5
## %bb.2:
	testl	%ecx, %eax
	je	LBB0_3
## %bb.4:
	movb	$0, _sendchar.previous_timeout(%rip)
LBB0_5:
	testl	%ecx, %eax
	je	LBB0_6
LBB0_10:
	movq	_UEDATX@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	movq	_debug_flush_timer@GOTPCREL(%rip), %rax
	movl	$2, (%rax)
	movl	%ebx, (%r12)
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_6:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_UDFNUML@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	addl	$4, %r13d
	movl	%ebx, (%r12)
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_usb_configured
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r12), %ebx
	xorl	%eax, %eax
	callq	_cli
	movq	_DEBUG_TX_ENDPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_UENUM@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r14), %eax
	movq	_RWAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jb	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_UDFNUML@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ebx, (%r12)
	cmpl	%r13d, %eax
	jne	LBB0_7
## %bb.12:
	movb	$1, _sendchar.previous_timeout(%rip)
	jmp	LBB0_13
LBB0_3:
	movl	%ebx, (%r12)
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_sendchar.previous_timeout,1,2 ## @sendchar.previous_timeout
	.comm	_SREG,4,2                       ## @SREG
	.comm	_DEBUG_TX_ENDPOINT,4,2          ## @DEBUG_TX_ENDPOINT
	.comm	_UENUM,4,2                      ## @UENUM
	.comm	_UEINTX,4,2                     ## @UEINTX
	.comm	_RWAL,4,2                       ## @RWAL
	.comm	_UDFNUML,4,2                    ## @UDFNUML
	.comm	_UEDATX,4,2                     ## @UEDATX
	.comm	_debug_flush_timer,4,2          ## @debug_flush_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendchar                       ; -- Begin function sendchar
	.p2align	2
_sendchar:                              ; @sendchar
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_usb_configured
	cbz	w0, LBB0_12
; %bb.1:
Lloh0:
	adrp	x20, _SREG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SREG@GOTPAGEOFF]
	ldr	w21, [x20]
	bl	_cli
Lloh2:
	adrp	x22, _DEBUG_TX_ENDPOINT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DEBUG_TX_ENDPOINT@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh4:
	adrp	x24, _UENUM@GOTPAGE
Lloh5:
	ldr	x24, [x24, _UENUM@GOTPAGEOFF]
	str	w8, [x24]
	adrp	x23, _sendchar.previous_timeout@PAGE
	ldrb	w10, [x23, _sendchar.previous_timeout@PAGEOFF]
Lloh6:
	adrp	x25, _UEINTX@GOTPAGE
Lloh7:
	ldr	x25, [x25, _UEINTX@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh8:
	adrp	x26, _RWAL@GOTPAGE
Lloh9:
	ldr	x26, [x26, _RWAL@GOTPAGEOFF]
	ldr	w9, [x26]
	mov	w11, #1
	lsl	w9, w11, w9
	cmp	w10, #1
	b.ne	LBB0_4
; %bb.2:
	tst	w9, w8
	b.eq	LBB0_11
; %bb.3:
	strb	wzr, [x23, _sendchar.previous_timeout@PAGEOFF]
LBB0_4:
	tst	w9, w8
	b.eq	LBB0_6
LBB0_5:
	mov	w0, #0
Lloh10:
	adrp	x8, _UEDATX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UEDATX@GOTPAGEOFF]
Lloh12:
	str	w19, [x8]
Lloh13:
	adrp	x8, _debug_flush_timer@GOTPAGE
Lloh14:
	ldr	x8, [x8, _debug_flush_timer@GOTPAGEOFF]
	mov	w9, #2
Lloh15:
	str	w9, [x8]
	str	w21, [x20]
	b	LBB0_13
LBB0_6:
Lloh16:
	adrp	x27, _UDFNUML@GOTPAGE
Lloh17:
	ldr	x27, [x27, _UDFNUML@GOTPAGEOFF]
	ldr	w8, [x27]
	add	w28, w8, #4
	str	w21, [x20]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	bl	_usb_configured
	cbz	w0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w21, [x20]
	bl	_cli
	ldr	w8, [x22]
	str	w8, [x24]
	ldr	w8, [x25]
	ldr	w9, [x26]
	lsr	w8, w8, w9
	tbnz	w8, #0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27]
	str	w21, [x20]
	cmp	w8, w28
	b.ne	LBB0_7
; %bb.10:
	mov	w8, #1
	strb	w8, [x23, _sendchar.previous_timeout@PAGEOFF]
	b	LBB0_12
LBB0_11:
	str	w21, [x20]
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_sendchar.previous_timeout,1,2 ; @sendchar.previous_timeout
	.comm	_SREG,4,2                       ; @SREG
	.comm	_DEBUG_TX_ENDPOINT,4,2          ; @DEBUG_TX_ENDPOINT
	.comm	_UENUM,4,2                      ; @UENUM
	.comm	_UEINTX,4,2                     ; @UEINTX
	.comm	_RWAL,4,2                       ; @RWAL
	.comm	_UDFNUML,4,2                    ; @UDFNUML
	.comm	_UEDATX,4,2                     ; @UEDATX
	.comm	_debug_flush_timer,4,2          ; @debug_flush_timer
.subsections_via_symbols
