	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_mac_reset                  ## -- Begin function hns_mac_reset
	.p2align	4, 0x90
_hns_mac_reset:                         ## @hns_mac_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_hns_mac_get_drv
	movq	%rax, %rbx
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_AE_IS_VER1
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	*32(%rbx)
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	callq	*%rax
LBB0_2:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	*%rax
LBB0_4:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_6:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	(%r14), %rcx
	movq	_HNAE_PORT_DEBUG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.8:
	xorl	%edx, %edx
	testl	%r15d, %r15d
	sete	%dl
	movq	%rbx, %rdi
	movl	%edx, %esi
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE_PORT_DEBUG,8,3            ## @HNAE_PORT_DEBUG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_mac_reset                  ; -- Begin function hns_mac_reset
	.p2align	2
_hns_mac_reset:                         ; @hns_mac_reset
	.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	x20, x0
	bl	_hns_mac_get_drv
	mov	x19, x0
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_AE_IS_VER1
	mov	x21, x0
	ldr	x8, [x19, #32]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x20, #12]
	mov	x0, x19
	blr	x8
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x20, #8]
	mov	x0, x19
	blr	x8
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_6:
	ldr	x3, [x19]
	cbz	x3, LBB0_9
; %bb.7:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _HNAE_PORT_DEBUG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HNAE_PORT_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	cmp	w21, #0
	cset	w1, eq
	mov	x0, x19
	mov	x2, x1
	b	LBB0_11
LBB0_9:
	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
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
LBB0_11:
	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
	br	x3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE_PORT_DEBUG,8,3            ; @HNAE_PORT_DEBUG
.subsections_via_symbols
