	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_ms_mem_write128    ## -- Begin function qlcnic_83xx_ms_mem_write128
	.p2align	4, 0x90
_qlcnic_83xx_ms_mem_write128:           ## @qlcnic_83xx_ms_mem_write128
	.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
	movl	%esi, %r13d
	testb	$15, %r13b
	je	LBB0_2
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_2:
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_mutex_lock
	movq	_QLCNIC_MS_ADDR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_qlcnic_83xx_wrt_reg_indirect
	testl	%r14d, %r14d
	jle	LBB0_15
## %bb.3:
	xorl	%r15d, %r15d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %r12
	incl	%r15d
	addl	$16, %r13d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	cmpl	%r14d, %r15d
	je	LBB0_15
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	_QLCNIC_ADDR_QDR_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QLCNIC_ADDR_QDR_NET_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	callq	_ADDR_IN_RANGE
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_QLCNIC_ADDR_DDR_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QLCNIC_ADDR_DDR_NET_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	callq	_ADDR_IN_RANGE
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_QLCNIC_MS_ADDR_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_qlcnic_83xx_wrt_reg_indirect
	movq	_QLCNIC_MS_WRTDATA_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_wrt_reg_indirect
	movq	_QLCNIC_MS_WRTDATA_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %edx
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_wrt_reg_indirect
	movq	_QLCNIC_MS_WRTDATA_ULO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_wrt_reg_indirect
	movq	_QLCNIC_MS_WRTDATA_UHI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r12), %edx
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_wrt_reg_indirect
	movq	_QLCNIC_MS_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_QLCNIC_TA_WRITE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_wrt_reg_indirect
	movl	(%r14), %esi
	movq	_QLCNIC_TA_WRITE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_wrt_reg_indirect
	movq	_MAX_CTL_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jle	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_QLCNIC_MS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_rd_reg_indirect
	movq	_TA_CTL_BUSY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	incl	%r14d
	movq	_MAX_CTL_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	jl	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%eax, %r14d
	jl	LBB0_14
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_MAX_CTL_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	jl	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_printk_ratelimit
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_6:
	movq	(%rbx), %rdi
	callq	_mutex_unlock
	jmp	LBB0_1
LBB0_15:
	movq	(%rbx), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_MS_ADDR_HI,4,2          ## @QLCNIC_MS_ADDR_HI
	.comm	_QLCNIC_ADDR_QDR_NET,4,2        ## @QLCNIC_ADDR_QDR_NET
	.comm	_QLCNIC_ADDR_QDR_NET_MAX,4,2    ## @QLCNIC_ADDR_QDR_NET_MAX
	.comm	_QLCNIC_ADDR_DDR_NET,4,2        ## @QLCNIC_ADDR_DDR_NET
	.comm	_QLCNIC_ADDR_DDR_NET_MAX,4,2    ## @QLCNIC_ADDR_DDR_NET_MAX
	.comm	_QLCNIC_MS_ADDR_LO,4,2          ## @QLCNIC_MS_ADDR_LO
	.comm	_QLCNIC_MS_WRTDATA_LO,4,2       ## @QLCNIC_MS_WRTDATA_LO
	.comm	_QLCNIC_MS_WRTDATA_HI,4,2       ## @QLCNIC_MS_WRTDATA_HI
	.comm	_QLCNIC_MS_WRTDATA_ULO,4,2      ## @QLCNIC_MS_WRTDATA_ULO
	.comm	_QLCNIC_MS_WRTDATA_UHI,4,2      ## @QLCNIC_MS_WRTDATA_UHI
	.comm	_QLCNIC_MS_CTRL,4,2             ## @QLCNIC_MS_CTRL
	.comm	_QLCNIC_TA_WRITE_ENABLE,4,2     ## @QLCNIC_TA_WRITE_ENABLE
	.comm	_QLCNIC_TA_WRITE_START,4,2      ## @QLCNIC_TA_WRITE_START
	.comm	_MAX_CTL_CHECK,4,2              ## @MAX_CTL_CHECK
	.comm	_TA_CTL_BUSY,4,2                ## @TA_CTL_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MS memory write failed.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_ms_mem_write128    ; -- Begin function qlcnic_83xx_ms_mem_write128
	.p2align	2
_qlcnic_83xx_ms_mem_write128:           ; @qlcnic_83xx_ms_mem_write128
	.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
	tst	w1, #0xf
	b.eq	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_2:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x0, [x0]
	bl	_mutex_lock
Lloh3:
	adrp	x8, _QLCNIC_MS_ADDR_HI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_MS_ADDR_HI@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_qlcnic_83xx_wrt_reg_indirect
	cmp	w20, #1
	b.lt	LBB0_17
; %bb.3:
	mov	w23, #0
Lloh6:
	adrp	x28, _QLCNIC_MS_CTRL@GOTPAGE
Lloh7:
	ldr	x28, [x28, _QLCNIC_MS_CTRL@GOTPAGEOFF]
Lloh8:
	adrp	x27, _QLCNIC_TA_WRITE_START@GOTPAGE
Lloh9:
	ldr	x27, [x27, _QLCNIC_TA_WRITE_START@GOTPAGEOFF]
Lloh10:
	adrp	x24, _MAX_CTL_CHECK@GOTPAGE
Lloh11:
	ldr	x24, [x24, _MAX_CTL_CHECK@GOTPAGEOFF]
Lloh12:
	adrp	x25, _TA_CTL_BUSY@GOTPAGE
Lloh13:
	ldr	x25, [x25, _TA_CTL_BUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #16
	add	w23, w23, #1
	add	w22, w22, #16
	cmp	w23, w20
	b.eq	LBB0_17
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
Lloh14:
	adrp	x8, _QLCNIC_ADDR_QDR_NET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QLCNIC_ADDR_QDR_NET@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _QLCNIC_ADDR_QDR_NET_MAX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _QLCNIC_ADDR_QDR_NET_MAX@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_ADDR_IN_RANGE
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh20:
	adrp	x8, _QLCNIC_ADDR_DDR_NET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _QLCNIC_ADDR_DDR_NET@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _QLCNIC_ADDR_DDR_NET_MAX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _QLCNIC_ADDR_DDR_NET_MAX@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_ADDR_IN_RANGE
	cbz	x0, LBB0_16
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh26:
	adrp	x8, _QLCNIC_MS_ADDR_LO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _QLCNIC_MS_ADDR_LO@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_qlcnic_83xx_wrt_reg_indirect
Lloh29:
	adrp	x8, _QLCNIC_MS_WRTDATA_LO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _QLCNIC_MS_WRTDATA_LO@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_qlcnic_83xx_wrt_reg_indirect
Lloh32:
	adrp	x8, _QLCNIC_MS_WRTDATA_HI@GOTPAGE
Lloh33:
	ldr	x8, [x8, _QLCNIC_MS_WRTDATA_HI@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [x21, #4]
	mov	x0, x19
	bl	_qlcnic_83xx_wrt_reg_indirect
Lloh35:
	adrp	x8, _QLCNIC_MS_WRTDATA_ULO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _QLCNIC_MS_WRTDATA_ULO@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_qlcnic_83xx_wrt_reg_indirect
Lloh38:
	adrp	x8, _QLCNIC_MS_WRTDATA_UHI@GOTPAGE
Lloh39:
	ldr	x8, [x8, _QLCNIC_MS_WRTDATA_UHI@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	ldr	w2, [x21, #12]
	mov	x0, x19
	bl	_qlcnic_83xx_wrt_reg_indirect
	ldr	w1, [x28]
Lloh41:
	adrp	x8, _QLCNIC_TA_WRITE_ENABLE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _QLCNIC_TA_WRITE_ENABLE@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_qlcnic_83xx_wrt_reg_indirect
	ldr	w1, [x28]
	ldr	w2, [x27]
	mov	x0, x19
	bl	_qlcnic_83xx_wrt_reg_indirect
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #0
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x28]
	mov	x0, x19
	bl	_qlcnic_83xx_rd_reg_indirect
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	w26, w26, #1
	ldr	w8, [x24]
	cmp	w26, w8
	b.lt	LBB0_9
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #0
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, w8
	b.lt	LBB0_4
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	cmp	w26, w8
	b.lt	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_printk_ratelimit
	cbz	x0, LBB0_4
; %bb.15:
	ldr	x0, [x19, #8]
Lloh44:
	adrp	x1, l_.str@PAGE
Lloh45:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_16:
	ldr	x0, [x19]
	bl	_mutex_unlock
	b	LBB0_1
LBB0_17:
	ldr	x0, [x19]
	bl	_mutex_unlock
	mov	w0, #0
LBB0_18:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_MS_ADDR_HI,4,2          ; @QLCNIC_MS_ADDR_HI
	.comm	_QLCNIC_ADDR_QDR_NET,4,2        ; @QLCNIC_ADDR_QDR_NET
	.comm	_QLCNIC_ADDR_QDR_NET_MAX,4,2    ; @QLCNIC_ADDR_QDR_NET_MAX
	.comm	_QLCNIC_ADDR_DDR_NET,4,2        ; @QLCNIC_ADDR_DDR_NET
	.comm	_QLCNIC_ADDR_DDR_NET_MAX,4,2    ; @QLCNIC_ADDR_DDR_NET_MAX
	.comm	_QLCNIC_MS_ADDR_LO,4,2          ; @QLCNIC_MS_ADDR_LO
	.comm	_QLCNIC_MS_WRTDATA_LO,4,2       ; @QLCNIC_MS_WRTDATA_LO
	.comm	_QLCNIC_MS_WRTDATA_HI,4,2       ; @QLCNIC_MS_WRTDATA_HI
	.comm	_QLCNIC_MS_WRTDATA_ULO,4,2      ; @QLCNIC_MS_WRTDATA_ULO
	.comm	_QLCNIC_MS_WRTDATA_UHI,4,2      ; @QLCNIC_MS_WRTDATA_UHI
	.comm	_QLCNIC_MS_CTRL,4,2             ; @QLCNIC_MS_CTRL
	.comm	_QLCNIC_TA_WRITE_ENABLE,4,2     ; @QLCNIC_TA_WRITE_ENABLE
	.comm	_QLCNIC_TA_WRITE_START,4,2      ; @QLCNIC_TA_WRITE_START
	.comm	_MAX_CTL_CHECK,4,2              ; @MAX_CTL_CHECK
	.comm	_TA_CTL_BUSY,4,2                ; @TA_CTL_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MS memory write failed.\n"

.subsections_via_symbols
