	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdev_set_mac_address
_netdev_set_mac_address:                ## @netdev_set_mac_address
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%rax), %rbx
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hw_del_addr
	jmp	LBB0_3
LBB0_2:
	movl	$1, (%rbx)
	movl	4(%rbx), %edi
	movl	(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_3:
	movl	(%r14), %edi
	movl	(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_hw_block_intr
	movl	%eax, %r12d
	cmpq	$0, (%r15)
	jle	LBB0_5
## %bb.4:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hw_add_addr
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_hw_set_addr
LBB0_6:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_hw_restore_intr
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_netdev_set_mac_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdev_set_mac_address
_netdev_set_mac_address:                ; @netdev_set_mac_address
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	ldp	x8, x19, [x0]
Lloh0:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hw_del_addr
	b	LBB0_3
LBB0_2:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #4]
	ldr	w1, [x22]
	ldr	w2, [x23]
	bl	_memcpy
LBB0_3:
	ldr	w0, [x20]
	ldr	w1, [x22]
	ldr	w2, [x23]
	bl	_memcpy
	mov	x0, x19
	bl	_hw_block_intr
	mov	x22, x0
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hw_add_addr
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_hw_set_addr
LBB0_6:
	mov	x0, x19
	mov	x1, x22
	bl	_hw_restore_intr
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_netdev_set_mac_address
.subsections_via_symbols
