	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_set_mac_address
_smsc911x_set_mac_address:              ## @smsc911x_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, %r15
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	cmpl	$1, (%rax)
	jg	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movl	(%r15), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	(%r12), %edi
	movl	(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%r14, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_smsc911x_set_hw_mac_address
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_info
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC Address: %pM\n"

	.no_dead_strip	_smsc911x_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 smsc911x_set_mac_address
_smsc911x_set_mac_address:              ; @smsc911x_set_mac_address
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.gt	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	w0, [x21]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_memcpy
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	w1, [x19]
	mov	x0, x20
	bl	_smsc911x_set_hw_mac_address
	mov	x0, x21
	bl	_spin_unlock_irq
	ldr	w2, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC Address: %pM\n"

	.no_dead_strip	_smsc911x_set_mac_address
.subsections_via_symbols
