	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_whole_buffer
_put_whole_buffer:                      ## @put_whole_buffer
	.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
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	(%rdi), %r13d
	movl	%esi, %edi
	shrl	$8, %edi
	movq	_AUTOINCflag@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_COM9026_REG_W_ADDR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %esi
	callq	_arcnet_outb
	movzbl	%r12b, %edi
	movq	_COM9026_REG_W_ADDR_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %esi
	callq	_arcnet_outb
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	_COM9026_REG_RW_MEMDATA@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r14,%rbx), %edi
	movl	(%r12), %edx
	movl	%r13d, %esi
	callq	_arcnet_outb
	incq	%rbx
	cmpl	%ebx, %r15d
	jne	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTOINCflag,4,2                ## @AUTOINCflag
	.comm	_COM9026_REG_W_ADDR_HI,4,2      ## @COM9026_REG_W_ADDR_HI
	.comm	_COM9026_REG_W_ADDR_LO,4,2      ## @COM9026_REG_W_ADDR_LO
	.comm	_COM9026_REG_RW_MEMDATA,4,2     ## @COM9026_REG_RW_MEMDATA
	.no_dead_strip	_put_whole_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_whole_buffer
_put_whole_buffer:                      ; @put_whole_buffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _AUTOINCflag@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUTOINCflag@GOTPAGEOFF]
	ldr	w21, [x0]
Lloh2:
	ldr	w8, [x8]
	orr	w0, w8, w1, lsr #8
Lloh3:
	adrp	x8, _COM9026_REG_W_ADDR_HI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COM9026_REG_W_ADDR_HI@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_arcnet_outb
	and	w0, w22, #0xff
Lloh6:
	adrp	x8, _COM9026_REG_W_ADDR_LO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COM9026_REG_W_ADDR_LO@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_arcnet_outb
	cbz	w20, LBB0_3
; %bb.1:
Lloh9:
	adrp	x22, _COM9026_REG_RW_MEMDATA@GOTPAGE
Lloh10:
	ldr	x22, [x22, _COM9026_REG_RW_MEMDATA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, #1
	ldrsb	w0, [x19], #1
	ldr	w2, [x22]
	mov	x1, x21
	bl	_arcnet_outb
	cbnz	w20, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTOINCflag,4,2                ; @AUTOINCflag
	.comm	_COM9026_REG_W_ADDR_HI,4,2      ; @COM9026_REG_W_ADDR_HI
	.comm	_COM9026_REG_W_ADDR_LO,4,2      ; @COM9026_REG_W_ADDR_LO
	.comm	_COM9026_REG_RW_MEMDATA,4,2     ; @COM9026_REG_RW_MEMDATA
	.no_dead_strip	_put_whole_buffer
.subsections_via_symbols
