	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esp_break
_esp_break:                             ## @esp_break
	.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
	movl	%esi, %r14d
	movq	8(%rdi), %r15
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_serial_paranoia_check
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_UART_ESI_CMD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ESI_ISSUE_BREAK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_serial_out
	movq	_UART_ESI_CMD2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$-1, %r14d
	je	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_serial_out
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_5
LBB0_3:
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_serial_out
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_interruptible_sleep_on
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"esp_break"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UART_ESI_CMD1,4,2              ## @UART_ESI_CMD1
	.comm	_ESI_ISSUE_BREAK,4,2            ## @ESI_ISSUE_BREAK
	.comm	_UART_ESI_CMD2,4,2              ## @UART_ESI_CMD2
	.no_dead_strip	_esp_break
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esp_break
_esp_break:                             ; @esp_break
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldr	x19, [x0, #8]
	ldr	w1, [x0]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_serial_paranoia_check
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh5:
	adrp	x8, _UART_ESI_CMD1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UART_ESI_CMD1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _ESI_ISSUE_BREAK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ESI_ISSUE_BREAK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_serial_out
Lloh11:
	adrp	x8, _UART_ESI_CMD2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UART_ESI_CMD2@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	cmn	w20, #1
	b.eq	LBB0_4
; %bb.3:
	mov	w2, #0
	bl	_serial_out
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	b	LBB0_5
LBB0_4:
	mov	w2, #1
	bl	_serial_out
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	add	x0, x19, #4
	bl	_interruptible_sleep_on
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"esp_break"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UART_ESI_CMD1,4,2              ; @UART_ESI_CMD1
	.comm	_ESI_ISSUE_BREAK,4,2            ; @ESI_ISSUE_BREAK
	.comm	_UART_ESI_CMD2,4,2              ; @UART_ESI_CMD2
	.no_dead_strip	_esp_break
.subsections_via_symbols
