	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_stream_set_cursor_attributes ## -- Begin function dc_stream_set_cursor_attributes
	.p2align	4, 0x90
_dc_stream_set_cursor_attributes:       ## @dc_stream_set_cursor_attributes
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.2:
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.3:
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rcx), %rcx
	movq	%rax, (%rdi)
	movq	_MAX_PIPES@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	jle	LBB0_20
## %bb.4:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	_MAX_PIPES@GOTPCREL(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movslq	(%rdx), %rax
	addq	$8, %r15
	cmpq	%rax, %r13
	jge	LBB0_17
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rbx
	cmpq	%rdi, (%rbx,%r15)
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	%r15, %rbx
	testq	%r12, %r12
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_delay_cursor_until_vupdate
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	*(%r14)
	movq	%rbx, %r12
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	callq	*16(%r14)
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	*%rcx
	jmp	LBB0_5
LBB0_12:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
LBB0_14:
	callq	_dm_error
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	$1, %ebx
	testq	%r12, %r12
	je	LBB0_16
## %bb.18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	*(%rdi)
	jmp	LBB0_16
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	callq	_dm_output_to_console
	jmp	LBB0_15
LBB0_20:
	movl	$1, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DC: dc_stream is NULL!\n"

L_.str.1:                               ## @.str.1
	.asciz	"DC: attributes is NULL!\n"

L_.str.2:                               ## @.str.2
	.asciz	"DC: Cursor address is 0!\n"

	.comm	_MAX_PIPES,4,2                  ## @MAX_PIPES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_stream_set_cursor_attributes ; -- Begin function dc_stream_set_cursor_attributes
	.p2align	2
_dc_stream_set_cursor_attributes:       ; @dc_stream_set_cursor_attributes
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_11
; %bb.1:
	cbz	x1, LBB0_12
; %bb.2:
	ldr	x8, [x1]
	cbz	x8, LBB0_14
; %bb.3:
	mov	x19, x0
	ldr	x9, [x0, #8]
	ldr	x20, [x9]
	ldr	x23, [x20, #24]
	str	x8, [x0]
Lloh0:
	adrp	x24, _MAX_PIPES@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_PIPES@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.4:
	mov	x25, #0
	mov	x26, #0
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x24]
	add	x25, x25, #8
	cmp	x26, x8
	b.ge	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x22, x8, x25
	ldr	x8, [x22]
	cmp	x8, x19
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	x21, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_delay_cursor_until_vupdate
	ldr	x8, [x20]
	mov	x0, x20
	mov	x1, x22
	mov	w2, #1
	blr	x8
	mov	x21, x22
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #16]
	mov	x0, x22
	blr	x8
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	blr	x8
	b	LBB0_5
LBB0_11:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_13:
	bl	_dm_error
	mov	w0, #0
	b	LBB0_18
LBB0_14:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dm_output_to_console
	mov	w0, #0
	b	LBB0_18
LBB0_15:
	cbz	x21, LBB0_17
; %bb.16:
	ldr	x8, [x20]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	blr	x8
LBB0_17:
	mov	w0, #1
LBB0_18:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DC: dc_stream is NULL!\n"

l_.str.1:                               ; @.str.1
	.asciz	"DC: attributes is NULL!\n"

l_.str.2:                               ; @.str.2
	.asciz	"DC: Cursor address is 0!\n"

	.comm	_MAX_PIPES,4,2                  ; @MAX_PIPES
.subsections_via_symbols
