	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function change_mac_addr
_change_mac_addr:                       ## @change_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	%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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %r8d
	movl	4(%r15), %r9d
	movl	8(%r15), %r10d
	movl	12(%r15), %r11d
	movl	16(%r15), %r14d
	movl	20(%r15), %eax
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	pushq	%rax
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_netif_info
	addq	$32, %rsp
	movq	%r13, %rdi
	callq	_down
	xorl	%r12d, %r12d
	movq	_VLAN_N_VID@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_hinic_port_del_mac
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_hinic_port_add_mac
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r13), %edi
	movq	(%r14), %rsi
	incq	%r12
	movq	%r12, %rdx
	callq	_find_next_bit
	movq	%rax, %r12
	cmpq	(%r14), %rax
	jne	LBB0_3
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_5
LBB0_7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rcx
LBB0_5:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_netif_err
LBB0_10:
	movq	%r13, %rdi
	callq	_up
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"change mac addr = %02x %02x %02x %02x %02x %02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to delete mac\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to add mac\n"

	.comm	_VLAN_N_VID,8,3                 ## @VLAN_N_VID
	.no_dead_strip	_change_mac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function change_mac_addr
_change_mac_addr:                       ; @change_mac_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x21
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x25, _drv@GOTPAGE
Lloh1:
	ldr	x25, [x25, _drv@GOTPAGEOFF]
	ldr	w1, [x25]
	ldp	w4, w5, [x21]
	ldp	w6, w7, [x21, #8]
	ldp	w8, w9, [x21, #16]
	stp	w8, w9, [sp]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netif_info
	mov	x0, x19
	bl	_down
	mov	x24, #0
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh6:
	adrp	x27, _VLAN_N_VID@GOTPAGE
Lloh7:
	ldr	x27, [x27, _VLAN_N_VID@GOTPAGEOFF]
Lloh8:
	adrp	x26, l_.str.2@PAGE
Lloh9:
	add	x26, x26, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	mov	x2, x24
	bl	_hinic_port_del_mac
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	bl	_hinic_port_add_mac
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #4]
	ldr	x1, [x27]
	add	x2, x24, #1
	bl	_find_next_bit
	mov	x24, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.5:
	mov	w23, #0
	b	LBB0_10
LBB0_6:
Lloh10:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_7:
	mov	x23, x0
	b	LBB0_9
LBB0_8:
	mov	x23, x0
	mov	x22, x26
LBB0_9:
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	bl	_netif_err
LBB0_10:
	mov	x0, x19
	bl	_up
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"change mac addr = %02x %02x %02x %02x %02x %02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to delete mac\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to add mac\n"

	.comm	_VLAN_N_VID,8,3                 ; @VLAN_N_VID
	.no_dead_strip	_change_mac_addr
.subsections_via_symbols
