	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88772_reset
_ax88772_reset:                         ## @ax88772_reset
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	callq	_ether_addr_copy
	movq	_AX_CMD_WRITE_NODE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	8(%rbx), %r9d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_asix_write_cmd
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_AX_DEFAULT_RX_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_asix_write_rx_ctl
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	_AX88772_MEDIUM_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_asix_write_medium_mode
	testl	%eax, %eax
	jns	LBB0_4
LBB0_3:
	movl	%eax, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AX_CMD_WRITE_NODE_ID,4,2       ## @AX_CMD_WRITE_NODE_ID
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_AX_DEFAULT_RX_CTL,4,2          ## @AX_DEFAULT_RX_CTL
	.comm	_AX88772_MEDIUM_DEFAULT,4,2     ## @AX88772_MEDIUM_DEFAULT
	.no_dead_strip	_ax88772_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88772_reset
_ax88772_reset:                         ; @ax88772_reset
	.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	w0, [x0, #8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	bl	_ether_addr_copy
Lloh0:
	adrp	x8, _AX_CMD_WRITE_NODE_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AX_CMD_WRITE_NODE_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	ldr	w5, [x19, #8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w6, #0
	bl	_asix_write_cmd
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _AX_DEFAULT_RX_CTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AX_DEFAULT_RX_CTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_asix_write_rx_ctl
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _AX88772_MEDIUM_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AX88772_MEDIUM_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_asix_write_medium_mode
	mov	x8, x0
	mov	w0, #0
	tbz	w8, #31, LBB0_4
; %bb.3:
	mov	x0, x8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AX_CMD_WRITE_NODE_ID,4,2       ; @AX_CMD_WRITE_NODE_ID
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_AX_DEFAULT_RX_CTL,4,2          ; @AX_DEFAULT_RX_CTL
	.comm	_AX88772_MEDIUM_DEFAULT,4,2     ; @AX88772_MEDIUM_DEFAULT
	.no_dead_strip	_ax88772_reset
.subsections_via_symbols
