	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_msg_vsi_set_primary_mac_addr
_enetc_msg_vsi_set_primary_mac_addr:    ## @enetc_msg_vsi_set_primary_mac_addr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$12, %edi
	movl	$64, %esi
	callq	_ALIGN
	movl	%eax, -32(%rbp)
	movl	(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-48(%rbp), %rdx
	movl	%eax, %esi
	callq	_dma_alloc_coherent
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_ENETC_MSG_CMD_MNG_MAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_ENETC_MSG_CMD_MNG_ADD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	4(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	_enetc_msg_vsi_send
	movl	%eax, %ebx
	movl	(%r15), %edi
	movl	-32(%rbp), %esi
	movq	-40(%rbp), %rdx
	movl	-48(%rbp), %ecx
	callq	_dma_free_coherent
	jmp	LBB0_3
LBB0_1:
	movl	(%r15), %edi
	movl	-32(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to alloc Tx msg (size: %d)\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENETC_MSG_CMD_MNG_MAC,4,2      ## @ENETC_MSG_CMD_MNG_MAC
	.comm	_ENETC_MSG_CMD_MNG_ADD,4,2      ## @ENETC_MSG_CMD_MNG_ADD
	.no_dead_strip	_enetc_msg_vsi_set_primary_mac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_msg_vsi_set_primary_mac_addr
_enetc_msg_vsi_set_primary_mac_addr:    ; @enetc_msg_vsi_set_primary_mac_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x1
	mov	x19, x0
	mov	w0, #12
	mov	w1, #64
	bl	_ALIGN
	mov	x1, x0
	str	w0, [sp, #24]
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x2, sp, #8
	bl	_dma_alloc_coherent
	str	x0, [sp, #16]
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENETC_MSG_CMD_MNG_MAC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENETC_MSG_CMD_MNG_MAC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ENETC_MSG_CMD_MNG_ADD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENETC_MSG_CMD_MNG_ADD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #4]
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_enetc_msg_vsi_send
	mov	x20, x0
	ldr	w0, [x19]
	ldr	w1, [sp, #24]
	ldr	x2, [sp, #16]
	ldr	w3, [sp, #8]
	bl	_dma_free_coherent
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19]
	ldr	w2, [sp, #24]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to alloc Tx msg (size: %d)\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENETC_MSG_CMD_MNG_MAC,4,2      ; @ENETC_MSG_CMD_MNG_MAC
	.comm	_ENETC_MSG_CMD_MNG_ADD,4,2      ; @ENETC_MSG_CMD_MNG_ADD
	.no_dead_strip	_enetc_msg_vsi_set_primary_mac_addr
.subsections_via_symbols
