	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uart_opal_put
_uart_opal_put:                         ## @uart_opal_put
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-68(%rbp), %rax
	movl	%eax, -76(%rbp)
	leaq	-64(%rbp), %rax
	movl	%eax, -72(%rbp)
	movq	(%rdi), %rax
	movq	_OPAL_RAW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	%r15d, -72(%rbp)
	movl	%r12d, -68(%rbp)
	leaq	-72(%rbp), %rdi
	leaq	-76(%rbp), %rsi
	callq	_uart_opal_real_map_outbuffer
	movq	_OPAL_CONSOLE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	movl	-76(%rbp), %edx
	movl	-72(%rbp), %ecx
	callq	_opal_call
	leaq	-68(%rbp), %rdi
	callq	_uart_opal_real_unmap_outbuffer
	movl	-68(%rbp), %eax
	jmp	LBB0_3
LBB0_2:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_uart_lock
	cmpq	$12, %r12
	movl	$12, %edx
	cmovbq	%r12, %rdx
	movl	16(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movq	_VS_DATA_PACKET_HEADER@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, -64(%rbp)
	leaq	4(%rdx), %r12
	movb	%r12b, -63(%rbp)
	movb	%ah, -62(%rbp)
	movb	%al, -61(%rbp)
	leaq	-60(%rbp), %rdi
	movq	%r15, %rsi
	callq	_memcpy
	movl	%r12d, -68(%rbp)
	leaq	-72(%rbp), %rdi
	leaq	-76(%rbp), %rsi
	callq	_uart_opal_real_map_outbuffer
	movq	_OPAL_CONSOLE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	movl	-76(%rbp), %edx
	movl	-72(%rbp), %ecx
	callq	_opal_call
	leaq	-68(%rbp), %rdi
	callq	_uart_opal_real_unmap_outbuffer
	movq	%r14, %rdi
	callq	_uart_unlock
	movl	-68(%rbp), %eax
	addl	$-4, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_OPAL_RAW,8,3                   ## @OPAL_RAW
	.comm	_OPAL_CONSOLE_WRITE,4,2         ## @OPAL_CONSOLE_WRITE
	.comm	_VS_DATA_PACKET_HEADER,1,0      ## @VS_DATA_PACKET_HEADER
	.comm	_OPAL_SUCCESS,4,2               ## @OPAL_SUCCESS
	.no_dead_strip	_uart_opal_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uart_opal_put
_uart_opal_put:                         ; @uart_opal_put
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	add	x8, sp, #20
	add	x23, sp, #24
	stp	w23, w8, [sp, #12]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _OPAL_RAW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OPAL_RAW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	str	w20, [sp, #12]
	str	w21, [sp, #20]
	add	x0, sp, #12
	add	x1, sp, #16
	bl	_uart_opal_real_map_outbuffer
Lloh6:
	adrp	x8, _OPAL_CONSOLE_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPAL_CONSOLE_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	ldp	w3, w2, [sp, #12]
	bl	_opal_call
	add	x0, sp, #20
	bl	_uart_opal_real_unmap_outbuffer
	ldr	w0, [sp, #20]
	b	LBB0_3
LBB0_2:
	add	x22, x19, #8
	mov	x0, x22
	bl	_uart_lock
	mov	w8, #12
	cmp	x21, #12
	csel	x2, x21, x8, lo
	ldr	w8, [x19, #16]
	add	w9, w8, #1
	str	w9, [x19, #16]
Lloh9:
	adrp	x9, _VS_DATA_PACKET_HEADER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VS_DATA_PACKET_HEADER@GOTPAGEOFF]
	ldrb	w9, [x9]
	strb	w9, [sp, #24]
	add	x21, x2, #4
	strb	w21, [sp, #25]
	lsr	w9, w8, #8
	strb	w9, [sp, #26]
	strb	w8, [sp, #27]
	add	x0, x23, #4
	mov	x1, x20
	bl	_memcpy
	str	w21, [sp, #20]
	add	x0, sp, #12
	add	x1, sp, #16
	bl	_uart_opal_real_map_outbuffer
Lloh11:
	adrp	x8, _OPAL_CONSOLE_WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPAL_CONSOLE_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	ldp	w3, w2, [sp, #12]
	bl	_opal_call
	add	x0, sp, #20
	bl	_uart_opal_real_unmap_outbuffer
	mov	x0, x22
	bl	_uart_unlock
	ldr	w8, [sp, #20]
	sub	w0, w8, #4
LBB0_3:
	ldr	x8, [sp, #40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_OPAL_RAW,8,3                   ; @OPAL_RAW
	.comm	_OPAL_CONSOLE_WRITE,4,2         ; @OPAL_CONSOLE_WRITE
	.comm	_VS_DATA_PACKET_HEADER,1,0      ; @VS_DATA_PACKET_HEADER
	.comm	_OPAL_SUCCESS,4,2               ; @OPAL_SUCCESS
	.no_dead_strip	_uart_opal_put
.subsections_via_symbols
