	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_aq_manage_mac_read
_ice_aq_manage_mac_read:                ## @ice_aq_manage_mac_read
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$15, %edx
	ja	LBB0_2
## %bb.1:
	movq	_ICE_ERR_BUF_TOO_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_2:
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ice_aqc_opc_manage_mac_read@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	callq	_ice_fill_dflt_direct_cmd_desc
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	movq	%r15, %r8
	callq	_ice_aq_send_cmd
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_3
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-48(%rbp), %edi
	callq	_le16_to_cpu
	movq	_ICE_AQC_MAN_MAC_READ_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_ICE_AQC_MAN_MAC_LAN_ADDR_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.4:
	movq	-56(%rbp), %rax
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	_ICE_AQC_MAN_MAC_ADDR_TYPE_LAN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, -8(%rbx)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	$16, %rbx
	decq	%rax
	jne	LBB0_6
	jmp	LBB0_9
LBB0_10:
	movq	_ICE_DBG_LAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_ice_debug
	movq	_ICE_ERR_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_7:
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movl	(%rbx), %esi
	callq	_ether_addr_copy
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_ether_addr_copy
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_BUF_TOO_SHORT,4,2      ## @ICE_ERR_BUF_TOO_SHORT
	.comm	_ice_aqc_opc_manage_mac_read,4,2 ## @ice_aqc_opc_manage_mac_read
	.comm	_ICE_AQC_MAN_MAC_READ_M,4,2     ## @ICE_AQC_MAN_MAC_READ_M
	.comm	_ICE_AQC_MAN_MAC_LAN_ADDR_VALID,4,2 ## @ICE_AQC_MAN_MAC_LAN_ADDR_VALID
	.comm	_ICE_DBG_LAN,4,2                ## @ICE_DBG_LAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"got invalid MAC address\n"

	.comm	_ICE_ERR_CFG,4,2                ## @ICE_ERR_CFG
	.comm	_ICE_AQC_MAN_MAC_ADDR_TYPE_LAN,8,3 ## @ICE_AQC_MAN_MAC_ADDR_TYPE_LAN
	.no_dead_strip	_ice_aq_manage_mac_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_aq_manage_mac_read
_ice_aq_manage_mac_read:                ; @ice_aq_manage_mac_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	w2, #15
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ICE_ERR_BUF_TOO_SHORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_ERR_BUF_TOO_SHORT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_2:
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh3:
	adrp	x8, _ice_aqc_opc_manage_mac_read@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ice_aqc_opc_manage_mac_read@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_ice_fill_dflt_direct_cmd_desc
	mov	x1, sp
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	mov	x4, x21
	bl	_ice_aq_send_cmd
	cbnz	w0, LBB0_11
; %bb.3:
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
Lloh6:
	adrp	x8, _ICE_AQC_MAN_MAC_READ_M@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE_AQC_MAN_MAC_READ_M@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh9:
	adrp	x9, _ICE_AQC_MAN_MAC_LAN_ADDR_VALID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ICE_AQC_MAN_MAC_LAN_ADDR_VALID@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_8
; %bb.4:
	ldr	x8, [sp]
	cbz	x8, LBB0_10
; %bb.5:
Lloh12:
	adrp	x9, _ICE_AQC_MAN_MAC_ADDR_TYPE_LAN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ICE_AQC_MAN_MAC_ADDR_TYPE_LAN@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x20, x20, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x20, #-8]
	cmp	x10, x9
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #16
	subs	x8, x8, #1
	b.ne	LBB0_6
	b	LBB0_10
LBB0_8:
Lloh15:
	adrp	x8, _ICE_DBG_LAN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ICE_DBG_LAN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ice_debug
Lloh20:
	adrp	x8, _ICE_ERR_CFG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ICE_ERR_CFG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_9:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	ldr	w1, [x20]
	bl	_ether_addr_copy
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_ether_addr_copy
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_BUF_TOO_SHORT,4,2      ; @ICE_ERR_BUF_TOO_SHORT
	.comm	_ice_aqc_opc_manage_mac_read,4,2 ; @ice_aqc_opc_manage_mac_read
	.comm	_ICE_AQC_MAN_MAC_READ_M,4,2     ; @ICE_AQC_MAN_MAC_READ_M
	.comm	_ICE_AQC_MAN_MAC_LAN_ADDR_VALID,4,2 ; @ICE_AQC_MAN_MAC_LAN_ADDR_VALID
	.comm	_ICE_DBG_LAN,4,2                ; @ICE_DBG_LAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"got invalid MAC address\n"

	.comm	_ICE_ERR_CFG,4,2                ; @ICE_ERR_CFG
	.comm	_ICE_AQC_MAN_MAC_ADDR_TYPE_LAN,8,3 ; @ICE_AQC_MAN_MAC_ADDR_TYPE_LAN
	.no_dead_strip	_ice_aq_manage_mac_read
.subsections_via_symbols
