	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_set_mac_reg
_xlgmac_set_mac_reg:                    ## @xlgmac_set_mac_reg
	.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
	movq	%rdx, %rbx
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	(%rsi), %r8
	movl	(%r8), %r15d
	movl	16(%r8), %r12d
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movl	(%rbx), %r9d
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_dbg
	movq	_MAC_MACA1HR_AE_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAC_MACA1HR_AE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS
	movl	%eax, %edi
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
LBB0_3:
	movl	(%rbx), %esi
	addq	(%r14), %rsi
	callq	_writel
	movq	_MAC_MACA_INC@GOTPCREL(%rip), %r12
	movl	(%rbx), %esi
	addl	(%r12), %esi
	movl	%esi, (%rbx)
	addq	(%r14), %rsi
	movl	%r15d, %edi
	callq	_writel
	movl	(%r12), %eax
	addl	%eax, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adding mac address %pM at %#x\n"

	.comm	_MAC_MACA1HR_AE_POS,4,2         ## @MAC_MACA1HR_AE_POS
	.comm	_MAC_MACA1HR_AE_LEN,4,2         ## @MAC_MACA1HR_AE_LEN
	.comm	_MAC_MACA_INC,8,3               ## @MAC_MACA_INC
	.no_dead_strip	_xlgmac_set_mac_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_set_mac_reg
_xlgmac_set_mac_reg:                    ; @xlgmac_set_mac_reg
	.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	x19, x2
	mov	x20, x0
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x4, [x1]
	ldr	w21, [x4]
	ldr	w22, [x4, #16]
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	ldr	w5, [x19]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netif_dbg
Lloh5:
	adrp	x8, _MAC_MACA1HR_AE_POS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAC_MACA1HR_AE_POS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _MAC_MACA1HR_AE_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAC_MACA1HR_AE_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS
	b	LBB0_3
LBB0_2:
	mov	w21, #0
	mov	w0, #0
LBB0_3:
	ldr	x8, [x20]
	ldr	w9, [x19]
	add	x1, x8, x9
	bl	_writel
Lloh11:
	adrp	x22, _MAC_MACA_INC@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MAC_MACA_INC@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x19]
	ldr	x10, [x20]
	add	w8, w9, w8
	add	x1, x10, x8
	str	w8, [x19]
	mov	x0, x21
	bl	_writel
	ldr	w8, [x22]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adding mac address %pM at %#x\n"

	.comm	_MAC_MACA1HR_AE_POS,4,2         ; @MAC_MACA1HR_AE_POS
	.comm	_MAC_MACA1HR_AE_LEN,4,2         ; @MAC_MACA1HR_AE_LEN
	.comm	_MAC_MACA_INC,8,3               ; @MAC_MACA_INC
	.no_dead_strip	_xlgmac_set_mac_reg
.subsections_via_symbols
