	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_lp_setup
_hns3_lp_setup:                         ## @hns3_lp_setup
	.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
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_hns3_get_handle
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.3:
	movl	%ebx, %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	*%rcx
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_11
	jmp	LBB0_7
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_11
LBB0_7:
	movq	16(%r15), %rax
	xorl	%ebx, %ebx
	cmpl	$32, (%rax)
	jg	LBB0_11
## %bb.8:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	*8(%rax)
	jmp	LBB0_11
LBB0_10:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_hns3_update_promisc_mode
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	andl	(%r14), %eax
	sete	%sil
	movq	%r14, %rdi
	callq	_hns3_enable_vlan_filter
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.no_dead_strip	_hns3_lp_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_lp_setup
_hns3_lp_setup:                         ; @hns3_lp_setup
	.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, x2
	mov	x22, x1
	mov	x19, x0
	bl	_hns3_get_handle
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
	ldr	x8, [x9]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_4
; %bb.2:
	mov	x20, x0
	and	w9, w22, #0xfffffffc
	cmp	w9, #128
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	blr	x8
	cbnz	w0, LBB0_5
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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_6:
Lloh3:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	cbnz	w0, LBB0_5
LBB0_7:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cmp	w8, #32
	b.gt	LBB0_11
; %bb.8:
	cbz	w21, LBB0_10
; %bb.9:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	blr	x8
	b	LBB0_11
LBB0_10:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hns3_update_promisc_mode
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, eq
	mov	x0, x19
	bl	_hns3_enable_vlan_filter
LBB0_11:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.no_dead_strip	_hns3_lp_setup
.subsections_via_symbols
