	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_dsaf_set_mac_key
_hns_dsaf_set_mac_key:                  ## @hns_dsaf_set_mac_key
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_DSAF_MODE_ENABLE@GOTPCREL(%rip), %rdi
	xorl	%r9d, %r9d
	cmpq	(%rdi), %rax
	movq	%rcx, %r14
	movq	%rdx, %rcx
	movq	%rsi, %rbx
	cmovleq	%r9, %r14
	movq	(%r8), %rax
	movq	%rax, 48(%rsi)
	movq	8(%r8), %rax
	movq	%rax, 40(%rsi)
	movq	16(%r8), %rax
	movq	%rax, 32(%rsi)
	movq	24(%r8), %rax
	movq	%rax, 24(%rsi)
	movq	32(%r8), %rax
	movq	%rax, 16(%rsi)
	movq	40(%r8), %rax
	movq	%rax, 8(%rsi)
	movq	$0, (%rsi)
	movq	_DSAF_TBL_TCAM_KEY_VLAN_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DSAF_TBL_TCAM_KEY_VLAN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_dsaf_set_field
	movq	(%rbx), %rdi
	movq	_DSAF_TBL_TCAM_KEY_PORT_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DSAF_TBL_TCAM_KEY_PORT_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dsaf_set_field                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DSAF_MODE_ENABLE,8,3           ## @DSAF_MODE_ENABLE
	.comm	_DSAF_TBL_TCAM_KEY_VLAN_M,4,2   ## @DSAF_TBL_TCAM_KEY_VLAN_M
	.comm	_DSAF_TBL_TCAM_KEY_VLAN_S,4,2   ## @DSAF_TBL_TCAM_KEY_VLAN_S
	.comm	_DSAF_TBL_TCAM_KEY_PORT_M,4,2   ## @DSAF_TBL_TCAM_KEY_PORT_M
	.comm	_DSAF_TBL_TCAM_KEY_PORT_S,4,2   ## @DSAF_TBL_TCAM_KEY_PORT_S
	.no_dead_strip	_hns_dsaf_set_mac_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_dsaf_set_mac_key
_hns_dsaf_set_mac_key:                  ; @hns_dsaf_set_mac_key
	.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	x8, x2
	mov	x19, x1
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _DSAF_MODE_ENABLE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DSAF_MODE_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	x20, x3, xzr, gt
	ldr	x9, [x4]
	str	x9, [x1, #48]
	ldr	x9, [x4, #8]
	str	x9, [x1, #40]
	ldr	x9, [x4, #16]
	str	x9, [x1, #32]
	ldr	x9, [x4, #24]
	str	x9, [x1, #24]
	ldr	x9, [x4, #32]
	str	x9, [x1, #16]
	ldr	x9, [x4, #40]
	stp	xzr, x9, [x1]
Lloh3:
	adrp	x9, _DSAF_TBL_TCAM_KEY_VLAN_M@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DSAF_TBL_TCAM_KEY_VLAN_M@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x9, _DSAF_TBL_TCAM_KEY_VLAN_S@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DSAF_TBL_TCAM_KEY_VLAN_S@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x9]
	mov	x0, #0
	mov	x3, x8
	bl	_dsaf_set_field
	ldr	x0, [x19]
Lloh9:
	adrp	x8, _DSAF_TBL_TCAM_KEY_PORT_M@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DSAF_TBL_TCAM_KEY_PORT_M@GOTPAGEOFF]
Lloh11:
	adrp	x9, _DSAF_TBL_TCAM_KEY_PORT_S@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DSAF_TBL_TCAM_KEY_PORT_S@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	ldr	w2, [x9]
	mov	x3, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dsaf_set_field
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DSAF_MODE_ENABLE,8,3           ; @DSAF_MODE_ENABLE
	.comm	_DSAF_TBL_TCAM_KEY_VLAN_M,4,2   ; @DSAF_TBL_TCAM_KEY_VLAN_M
	.comm	_DSAF_TBL_TCAM_KEY_VLAN_S,4,2   ; @DSAF_TBL_TCAM_KEY_VLAN_S
	.comm	_DSAF_TBL_TCAM_KEY_PORT_M,4,2   ; @DSAF_TBL_TCAM_KEY_PORT_M
	.comm	_DSAF_TBL_TCAM_KEY_PORT_S,4,2   ; @DSAF_TBL_TCAM_KEY_PORT_S
	.no_dead_strip	_hns_dsaf_set_mac_key
.subsections_via_symbols
