	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_nic_memory
_write_nic_memory:                      ## @write_nic_memory
	.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, %r12
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r14
	movl	%esi, %r15d
	andl	$-4, %r15d
	andl	$3, %r13d
	je	LBB0_4
## %bb.1:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_IPW_REG_INDIRECT_ACCESS_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %edx
	callq	_write_register
	movl	%r13d, %r15d
	movq	_IPW_REG_INDIRECT_ACCESS_DATA@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	addq	%r15, %rsi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_write_register_byte
	incq	%r15
	addq	$4, %r12
	cmpq	$4, %r15
	jne	LBB0_2
## %bb.3:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	subl	%r13d, %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	addl	$4, %r15d
LBB0_4:
	movq	_IPW_REG_AUTOINCREMENT_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_write_register
	movl	%ebx, %r13d
	andl	$-4, %r13d
	jle	LBB0_8
## %bb.5:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	_IPW_REG_AUTOINCREMENT_DATA@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_write_register
	addl	$4, %ebx
	addq	$16, %r12
	cmpl	%r13d, %ebx
	jl	LBB0_6
## %bb.7:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	addl	%ebx, %r15d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_8:
	movq	_IPW_REG_INDIRECT_ACCESS_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_write_register
	andl	$3, %ebx
	je	LBB0_11
## %bb.9:
	movl	%ebx, %r15d
	xorl	%ebx, %ebx
	movq	_IPW_REG_INDIRECT_ACCESS_DATA@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movl	(%r12,%rbx,4), %edx
	movq	%r14, %rdi
	callq	_write_register_byte
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPW_REG_INDIRECT_ACCESS_ADDRESS,4,2 ## @IPW_REG_INDIRECT_ACCESS_ADDRESS
	.comm	_IPW_REG_INDIRECT_ACCESS_DATA,8,3 ## @IPW_REG_INDIRECT_ACCESS_DATA
	.comm	_IPW_REG_AUTOINCREMENT_ADDRESS,4,2 ## @IPW_REG_AUTOINCREMENT_ADDRESS
	.comm	_IPW_REG_AUTOINCREMENT_DATA,4,2 ## @IPW_REG_AUTOINCREMENT_DATA
	.no_dead_strip	_write_nic_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_nic_memory
_write_nic_memory:                      ; @write_nic_memory
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x22, x2
	mov	x19, x0
	and	w21, w1, #0xfffffffc
Lloh0:
	adrp	x24, _IPW_REG_INDIRECT_ACCESS_ADDRESS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IPW_REG_INDIRECT_ACCESS_ADDRESS@GOTPAGEOFF]
Lloh2:
	adrp	x23, _IPW_REG_INDIRECT_ACCESS_DATA@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IPW_REG_INDIRECT_ACCESS_DATA@GOTPAGEOFF]
	ands	w25, w1, #0x3
	b.eq	LBB0_9
; %bb.1:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_write_register
	ldr	x8, [x23]
	add	x1, x8, x25
	mov	x26, x20
	ldr	w2, [x26], #4
	mov	x0, x19
	bl	_write_register_byte
	add	x8, x25, #1
	cmp	x8, #4
	b.ne	LBB0_3
; %bb.2:
	mov	x20, x26
	b	LBB0_8
LBB0_3:
	ldr	x9, [x23]
	add	x1, x9, x8
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_write_register_byte
	add	x8, x25, #2
	cmp	x8, #4
	b.ne	LBB0_5
; %bb.4:
	add	x20, x20, #8
	b	LBB0_8
LBB0_5:
	ldr	x9, [x23]
	add	x1, x9, x8
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_write_register_byte
	add	x8, x25, #3
	cmp	x8, #4
	b.ne	LBB0_7
; %bb.6:
	add	x20, x20, #12
	b	LBB0_8
LBB0_7:
	ldr	x9, [x23]
	add	x1, x9, x8
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_write_register_byte
	add	x20, x20, #16
LBB0_8:
	sub	w22, w22, w25
	add	w21, w21, #4
LBB0_9:
Lloh4:
	adrp	x8, _IPW_REG_AUTOINCREMENT_ADDRESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IPW_REG_AUTOINCREMENT_ADDRESS@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_write_register
	and	w25, w22, #0xfffffffc
	cmp	w25, #1
	b.lt	LBB0_13
; %bb.10:
	mov	w26, #0
Lloh7:
	adrp	x27, _IPW_REG_AUTOINCREMENT_DATA@GOTPAGE
Lloh8:
	ldr	x27, [x27, _IPW_REG_AUTOINCREMENT_DATA@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x27]
	ldr	w2, [x20], #16
	mov	x0, x19
	bl	_write_register
	add	w26, w26, #4
	cmp	w26, w25
	b.lt	LBB0_11
; %bb.12:
	add	w21, w21, w26
LBB0_13:
	and	w22, w22, #0x3
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_write_register
	cbz	w22, LBB0_16
; %bb.14:
	ldr	x1, [x23]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_write_register_byte
	cmp	w22, #1
	b.eq	LBB0_16
; %bb.15:
	ldr	x8, [x23]
	add	x1, x8, #1
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_write_register_byte
	cmp	w22, #2
	b.ne	LBB0_17
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldr	x8, [x23]
	add	x1, x8, #2
	ldr	w2, [x20, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_write_register_byte
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IPW_REG_INDIRECT_ACCESS_ADDRESS,4,2 ; @IPW_REG_INDIRECT_ACCESS_ADDRESS
	.comm	_IPW_REG_INDIRECT_ACCESS_DATA,8,3 ; @IPW_REG_INDIRECT_ACCESS_DATA
	.comm	_IPW_REG_AUTOINCREMENT_ADDRESS,4,2 ; @IPW_REG_AUTOINCREMENT_ADDRESS
	.comm	_IPW_REG_AUTOINCREMENT_DATA,4,2 ; @IPW_REG_AUTOINCREMENT_DATA
	.no_dead_strip	_write_nic_memory
.subsections_via_symbols
