	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8152_set_mac_address
_rtl8152_set_mac_address:               ## @rtl8152_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	%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, %r13
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	(%r14), %edi
	callq	_usb_autopm_get_interface
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	%r14, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	(%r13), %edx
	movl	4(%r13), %edi
	movl	(%r15), %esi
	callq	_memcpy
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PLA_CRWECR@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_CRWECR_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_ocp_write_byte
	movq	_PLA_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BYTE_EN_SIX_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %r8d
	movq	%r14, %rdi
	movl	$8, %ecx
	callq	_pla_ocp_write
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	_CRWECR_NORAML@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_ocp_write_byte
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	(%r14), %edi
	callq	_usb_autopm_put_interface
LBB0_3:
	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	_MCU_TYPE_PLA,4,2               ## @MCU_TYPE_PLA
	.comm	_PLA_CRWECR,4,2                 ## @PLA_CRWECR
	.comm	_CRWECR_CONFIG,4,2              ## @CRWECR_CONFIG
	.comm	_PLA_IDR,4,2                    ## @PLA_IDR
	.comm	_BYTE_EN_SIX_BYTES,4,2          ## @BYTE_EN_SIX_BYTES
	.comm	_CRWECR_NORAML,4,2              ## @CRWECR_NORAML
	.no_dead_strip	_rtl8152_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 rtl8152_set_mac_address
_rtl8152_set_mac_address:               ; @rtl8152_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	x21, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w0, [x21]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	bl	_usb_autopm_get_interface
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	add	x23, x19, #4
	mov	x0, x23
	bl	_mutex_lock
	ldr	w1, [x21]
	ldp	w2, w0, [x22]
	bl	_memcpy
Lloh3:
	adrp	x22, _MCU_TYPE_PLA@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MCU_TYPE_PLA@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh5:
	adrp	x24, _PLA_CRWECR@GOTPAGE
Lloh6:
	ldr	x24, [x24, _PLA_CRWECR@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh7:
	adrp	x8, _CRWECR_CONFIG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CRWECR_CONFIG@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_ocp_write_byte
Lloh10:
	adrp	x8, _PLA_IDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PLA_IDR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _BYTE_EN_SIX_BYTES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BYTE_EN_SIX_BYTES@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w4, [x21]
	mov	x0, x19
	mov	w3, #8
	bl	_pla_ocp_write
	ldr	w1, [x22]
	ldr	w2, [x24]
Lloh16:
	adrp	x8, _CRWECR_NORAML@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CRWECR_NORAML@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_ocp_write_byte
	mov	x0, x23
	bl	_mutex_unlock
	ldr	w0, [x19]
	bl	_usb_autopm_put_interface
	b	LBB0_4
LBB0_3:
	neg	w20, w20
LBB0_4:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_MCU_TYPE_PLA,4,2               ; @MCU_TYPE_PLA
	.comm	_PLA_CRWECR,4,2                 ; @PLA_CRWECR
	.comm	_CRWECR_CONFIG,4,2              ; @CRWECR_CONFIG
	.comm	_PLA_IDR,4,2                    ; @PLA_IDR
	.comm	_BYTE_EN_SIX_BYTES,4,2          ; @BYTE_EN_SIX_BYTES
	.comm	_CRWECR_NORAML,4,2              ; @CRWECR_NORAML
	.no_dead_strip	_rtl8152_set_mac_address
.subsections_via_symbols
