	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip2_write
_ip2_write:                             ## @ip2_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, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	(%rdi), %r12
	movq	_CHANN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ITRC_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ITRC_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	movl	$2, %ecx
	movl	%r15d, %r8d
	movl	$-1, %r9d
	xorl	%eax, %eax
	callq	_ip2trace
	movq	%r13, %rdi
	callq	_ip2_flush_chars
	movq	%r12, %rdi
	callq	_write_lock_irqsave
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_i2Output
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_write_unlock_irqrestore
	movq	_CHANN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ITRC_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ITRC_RETURN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_ip2trace
	testl	%ebx, %ebx
	cmovgl	%ebx, %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANN,4,2                      ## @CHANN
	.comm	_ITRC_WRITE,4,2                 ## @ITRC_WRITE
	.comm	_ITRC_ENTER,4,2                 ## @ITRC_ENTER
	.comm	_ITRC_RETURN,4,2                ## @ITRC_RETURN
	.no_dead_strip	_ip2_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip2_write
_ip2_write:                             ; @ip2_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x23, _CHANN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CHANN@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x24, _ITRC_WRITE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ITRC_WRITE@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh4:
	adrp	x8, _ITRC_ENTER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ITRC_ENTER@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w8, #-1
	str	x8, [sp]
	mov	w3, #2
	mov	x4, x19
	bl	_ip2trace
	mov	x0, x21
	bl	_ip2_flush_chars
	mov	x0, x22
	bl	_write_lock_irqsave
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_i2Output
	mov	x19, x0
	mov	x0, x22
	bl	_write_unlock_irqrestore
	ldr	w0, [x23]
	ldr	w1, [x24]
Lloh7:
	adrp	x8, _ITRC_RETURN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ITRC_RETURN@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w3, #1
	mov	x4, x19
	bl	_ip2trace
	cmp	w19, #0
	csel	w0, w19, wzr, gt
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANN,4,2                      ; @CHANN
	.comm	_ITRC_WRITE,4,2                 ; @ITRC_WRITE
	.comm	_ITRC_ENTER,4,2                 ; @ITRC_ENTER
	.comm	_ITRC_RETURN,4,2                ; @ITRC_RETURN
	.no_dead_strip	_ip2_write
.subsections_via_symbols
