	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_do_set_mac
_mlx4_en_do_set_mac:                    ## @mlx4_en_do_set_mac
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_4
## %bb.1:
	movl	12(%rbx), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movl	8(%rbx), %ecx
	movq	%rbx, %rdi
	callq	_mlx4_en_replace_mac
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_en_err
LBB0_3:
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_5
LBB0_4:
	movq	_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rsi
	callq	_en_dbg
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed changing HW MAC address\n"

	.comm	_HW,4,2                         ## @HW
L_.str.1:                               ## @.str.1
	.asciz	"Port is down while registering mac, exiting...\n"

	.no_dead_strip	_mlx4_en_do_set_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_do_set_mac
_mlx4_en_do_set_mac:                    ; @mlx4_en_do_set_mac
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	ldr	w2, [x8]
	ldp	w3, w1, [x19, #8]
	mov	x0, x19
	bl	_mlx4_en_replace_mac
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_en_err
LBB0_3:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcpy
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _HW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HW@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_en_dbg
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed changing HW MAC address\n"

	.comm	_HW,4,2                         ; @HW
l_.str.1:                               ; @.str.1
	.asciz	"Port is down while registering mac, exiting...\n"

	.no_dead_strip	_mlx4_en_do_set_mac
.subsections_via_symbols
