	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_gmac_set_mac_addr
_hns_gmac_set_mac_addr:                 ## @hns_gmac_set_mac_addr
	.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	%rdi, %rbx
	movb	1(%rsi), %r12b
	movsbl	5(%rsi), %r14d
	movq	_GMAC_STATION_ADDR_HIGH_2_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dsaf_read_dev
	movq	_GMAC_ADDR_EN_B@GOTPCREL(%rip), %r13
	movsbl	(%r13), %esi
	movsbl	%al, %edi
	callq	_dsaf_get_bit
	movl	%eax, %r15d
	movq	_GMAC_STATION_ADDR_LOW_2_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_dsaf_write_dev
	movzbl	%r15b, %eax
	movb	(%r13), %cl
	shll	%cl, %eax
	movq	_GMAC_STATION_ADDR_HIGH_2_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orb	%r12b, %al
	movsbl	%al, %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsaf_write_dev                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GMAC_STATION_ADDR_HIGH_2_REG,4,2 ## @GMAC_STATION_ADDR_HIGH_2_REG
	.comm	_GMAC_ADDR_EN_B,1,0             ## @GMAC_ADDR_EN_B
	.comm	_GMAC_STATION_ADDR_LOW_2_REG,4,2 ## @GMAC_STATION_ADDR_LOW_2_REG
	.no_dead_strip	_hns_gmac_set_mac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_gmac_set_mac_addr
_hns_gmac_set_mac_addr:                 ; @hns_gmac_set_mac_addr
	.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	x19, x0
	ldrb	w22, [x1, #1]
	ldrsb	w20, [x1, #5]
Lloh0:
	adrp	x23, _GMAC_STATION_ADDR_HIGH_2_REG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GMAC_STATION_ADDR_HIGH_2_REG@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_dsaf_read_dev
Lloh2:
	adrp	x24, _GMAC_ADDR_EN_B@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GMAC_ADDR_EN_B@GOTPAGEOFF]
	ldrsb	w1, [x24]
	bl	_dsaf_get_bit
	mov	x21, x0
Lloh4:
	adrp	x8, _GMAC_STATION_ADDR_LOW_2_REG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GMAC_STATION_ADDR_LOW_2_REG@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_dsaf_write_dev
	ldr	w1, [x23]
	and	w8, w21, #0xff
	ldrb	w9, [x24]
	lsl	w8, w8, w9
	orr	w8, w22, w8
	sxtb	w2, w8
	mov	x0, x19
	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
	b	_dsaf_write_dev
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GMAC_STATION_ADDR_HIGH_2_REG,4,2 ; @GMAC_STATION_ADDR_HIGH_2_REG
	.comm	_GMAC_ADDR_EN_B,1,0             ; @GMAC_ADDR_EN_B
	.comm	_GMAC_STATION_ADDR_LOW_2_REG,4,2 ; @GMAC_STATION_ADDR_LOW_2_REG
	.no_dead_strip	_hns_gmac_set_mac_addr
.subsections_via_symbols
