	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netsec_netdev_load_microcode
_netsec_netdev_load_microcode:          ## @netsec_netdev_load_microcode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_NETSEC_EEPROM_HM_ME_ADDRESS_H@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	%rax, %r14
	movq	_NETSEC_EEPROM_HM_ME_ADDRESS_L@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	%rax, %r15
	movq	_NETSEC_EEPROM_HM_ME_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	_NETSEC_REG_DMAC_HM_CMD_BUF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%rax, %r8
	callq	_netsec_netdev_load_ucode_region
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_NETSEC_EEPROM_MH_ME_ADDRESS_H@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	%rax, %r14
	movq	_NETSEC_EEPROM_MH_ME_ADDRESS_L@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	%rax, %r15
	movq	_NETSEC_EEPROM_MH_ME_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	_NETSEC_REG_DMAC_MH_CMD_BUF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%rax, %r8
	callq	_netsec_netdev_load_ucode_region
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_NETSEC_EEPROM_PKT_ME_ADDRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	%rax, %r14
	movq	_NETSEC_EEPROM_PKT_ME_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	_NETSEC_REG_PKT_CMD_BUF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movq	%rax, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netsec_netdev_load_ucode_region ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NETSEC_EEPROM_HM_ME_ADDRESS_H,8,3 ## @NETSEC_EEPROM_HM_ME_ADDRESS_H
	.comm	_NETSEC_EEPROM_HM_ME_ADDRESS_L,8,3 ## @NETSEC_EEPROM_HM_ME_ADDRESS_L
	.comm	_NETSEC_EEPROM_HM_ME_SIZE,8,3   ## @NETSEC_EEPROM_HM_ME_SIZE
	.comm	_NETSEC_REG_DMAC_HM_CMD_BUF,4,2 ## @NETSEC_REG_DMAC_HM_CMD_BUF
	.comm	_NETSEC_EEPROM_MH_ME_ADDRESS_H,8,3 ## @NETSEC_EEPROM_MH_ME_ADDRESS_H
	.comm	_NETSEC_EEPROM_MH_ME_ADDRESS_L,8,3 ## @NETSEC_EEPROM_MH_ME_ADDRESS_L
	.comm	_NETSEC_EEPROM_MH_ME_SIZE,8,3   ## @NETSEC_EEPROM_MH_ME_SIZE
	.comm	_NETSEC_REG_DMAC_MH_CMD_BUF,4,2 ## @NETSEC_REG_DMAC_MH_CMD_BUF
	.comm	_NETSEC_EEPROM_PKT_ME_ADDRESS,8,3 ## @NETSEC_EEPROM_PKT_ME_ADDRESS
	.comm	_NETSEC_EEPROM_PKT_ME_SIZE,8,3  ## @NETSEC_EEPROM_PKT_ME_SIZE
	.comm	_NETSEC_REG_PKT_CMD_BUF,4,2     ## @NETSEC_REG_PKT_CMD_BUF
	.no_dead_strip	_netsec_netdev_load_microcode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netsec_netdev_load_microcode
_netsec_netdev_load_microcode:          ; @netsec_netdev_load_microcode
	.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, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NETSEC_EEPROM_HM_ME_ADDRESS_H@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETSEC_EEPROM_HM_ME_ADDRESS_H@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _NETSEC_EEPROM_HM_ME_ADDRESS_L@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETSEC_EEPROM_HM_ME_ADDRESS_L@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _NETSEC_EEPROM_HM_ME_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NETSEC_EEPROM_HM_ME_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x4, x0
Lloh9:
	adrp	x8, _NETSEC_REG_DMAC_HM_CMD_BUF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NETSEC_REG_DMAC_HM_CMD_BUF@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_netsec_netdev_load_ucode_region
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _NETSEC_EEPROM_MH_ME_ADDRESS_H@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NETSEC_EEPROM_MH_ME_ADDRESS_H@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _NETSEC_EEPROM_MH_ME_ADDRESS_L@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NETSEC_EEPROM_MH_ME_ADDRESS_L@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _NETSEC_EEPROM_MH_ME_SIZE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NETSEC_EEPROM_MH_ME_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x4, x0
Lloh21:
	adrp	x8, _NETSEC_REG_DMAC_MH_CMD_BUF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NETSEC_REG_DMAC_MH_CMD_BUF@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_netsec_netdev_load_ucode_region
	cbz	w0, LBB0_3
LBB0_2:
	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
LBB0_3:
	ldr	x8, [x19]
Lloh24:
	adrp	x9, _NETSEC_EEPROM_PKT_ME_ADDRESS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NETSEC_EEPROM_PKT_ME_ADDRESS@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	ldr	x8, [x19]
Lloh27:
	adrp	x9, _NETSEC_EEPROM_PKT_ME_SIZE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _NETSEC_EEPROM_PKT_ME_SIZE@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x4, x0
Lloh30:
	adrp	x8, _NETSEC_REG_PKT_CMD_BUF@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NETSEC_REG_PKT_CMD_BUF@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	x3, x20
	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
	b	_netsec_netdev_load_ucode_region
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_NETSEC_EEPROM_HM_ME_ADDRESS_H,8,3 ; @NETSEC_EEPROM_HM_ME_ADDRESS_H
	.comm	_NETSEC_EEPROM_HM_ME_ADDRESS_L,8,3 ; @NETSEC_EEPROM_HM_ME_ADDRESS_L
	.comm	_NETSEC_EEPROM_HM_ME_SIZE,8,3   ; @NETSEC_EEPROM_HM_ME_SIZE
	.comm	_NETSEC_REG_DMAC_HM_CMD_BUF,4,2 ; @NETSEC_REG_DMAC_HM_CMD_BUF
	.comm	_NETSEC_EEPROM_MH_ME_ADDRESS_H,8,3 ; @NETSEC_EEPROM_MH_ME_ADDRESS_H
	.comm	_NETSEC_EEPROM_MH_ME_ADDRESS_L,8,3 ; @NETSEC_EEPROM_MH_ME_ADDRESS_L
	.comm	_NETSEC_EEPROM_MH_ME_SIZE,8,3   ; @NETSEC_EEPROM_MH_ME_SIZE
	.comm	_NETSEC_REG_DMAC_MH_CMD_BUF,4,2 ; @NETSEC_REG_DMAC_MH_CMD_BUF
	.comm	_NETSEC_EEPROM_PKT_ME_ADDRESS,8,3 ; @NETSEC_EEPROM_PKT_ME_ADDRESS
	.comm	_NETSEC_EEPROM_PKT_ME_SIZE,8,3  ; @NETSEC_EEPROM_PKT_ME_SIZE
	.comm	_NETSEC_REG_PKT_CMD_BUF,4,2     ; @NETSEC_REG_PKT_CMD_BUF
	.no_dead_strip	_netsec_netdev_load_microcode
.subsections_via_symbols
