	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib9000_risc_mem_setup_cmd
_dib9000_risc_mem_setup_cmd:            ## @dib9000_risc_mem_setup_cmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -48(%rbp)
	movl	$1, -76(%rbp)
	movzbl	%sil, %eax
	addl	%esi, %edx
	sarl	$8, %esi
	movl	%esi, -64(%rbp)
	movl	%eax, -60(%rbp)
	movl	%esi, -32(%rbp)
	movl	%eax, -28(%rbp)
	movzbl	%dl, %eax
	sarl	$8, %edx
	movl	%edx, -48(%rbp)
	movl	%eax, -44(%rbp)
	leaq	-80(%rbp), %rdx
	movl	$1056, %esi                     ## imm = 0x420
	movl	$14, %ecx
	callq	_dib9000_write
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$1056, %esi                     ## imm = 0x420
	movl	$32769, %edx                    ## imm = 0x8001
	callq	_dib9000_write_word
LBB0_2:
	movl	$-1, (%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dib9000_risc_mem_setup_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib9000_risc_mem_setup_cmd
_dib9000_risc_mem_setup_cmd:            ; @dib9000_risc_mem_setup_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x3
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	str	q0, [sp, #32]
	mov	w8, #1
	asr	w9, w1, #8
	str	w8, [sp, #4]
	and	w8, w1, #0xff
	stp	w9, w8, [sp, #16]
	stp	w9, w8, [sp, #48]
	add	w8, w2, w1
	asr	w9, w8, #8
	and	w8, w8, #0xff
	stp	w9, w8, [sp, #32]
	mov	x2, sp
	mov	w1, #1056
	mov	w3, #14
	bl	_dib9000_write
	cbz	w20, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1056
	mov	w2, #32769
	bl	_dib9000_write_word
LBB0_2:
	mov	w8, #-1
	str	w8, [x19]
	ldur	x8, [x29, #-24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dib9000_risc_mem_setup_cmd
.subsections_via_symbols
