	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dfx_ctl_set_mac_address
_dfx_ctl_set_mac_address:               ## @dfx_ctl_set_mac_address
	.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	%rsi, %r15
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%r14), %rdi
	movl	(%r15), %esi
	movq	_FDDI_K_ALEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_memcpy
	movq	24(%rbx), %rdi
	movl	(%r15), %esi
	movl	(%r12), %edx
	callq	_memcpy
	movl	$1, (%rbx)
	movq	8(%rbx), %rax
	movq	_PI_CMD_ADDR_FILTER_K_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movq	_PI_FSTATE_K_PASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_dfx_ctl_update_filters
	movq	_DFX_K_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_DBG_printk
LBB0_2:
	movq	%rbx, %rdi
	callq	_dfx_ctl_update_cam
	movq	_DFX_K_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdi
	cmoveq	%rax, %rdi
	movl	(%r14), %esi
	callq	_DBG_printk
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDDI_K_ALEN,4,2                ## @FDDI_K_ALEN
	.comm	_PI_CMD_ADDR_FILTER_K_SIZE,8,3  ## @PI_CMD_ADDR_FILTER_K_SIZE
	.comm	_PI_FSTATE_K_PASS,4,2           ## @PI_FSTATE_K_PASS
	.comm	_DFX_K_SUCCESS,8,3              ## @DFX_K_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Could not update adapter filters!\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: Adapter filters updated!\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: Could not set new MAC address!\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: Adapter CAM updated with new MAC address\n"

	.no_dead_strip	_dfx_ctl_set_mac_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dfx_ctl_set_mac_address
_dfx_ctl_set_mac_address:               ; @dfx_ctl_set_mac_address
	.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, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x0, [x19, #8]
	ldr	w1, [x21]
Lloh0:
	adrp	x22, _FDDI_K_ALEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FDDI_K_ALEN@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_memcpy
	ldr	x0, [x20, #24]
	ldr	w1, [x21]
	ldr	w2, [x22]
	bl	_memcpy
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x9, _PI_CMD_ADDR_FILTER_K_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PI_CMD_ADDR_FILTER_K_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x21, _DFX_K_SUCCESS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _DFX_K_SUCCESS@GOTPAGEOFF]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _PI_FSTATE_K_PASS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PI_FSTATE_K_PASS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	xzr, [x20, #8]
	mov	x0, x20
	bl	_dfx_ctl_update_filters
	ldr	x8, [x21]
	ldr	w1, [x19]
Lloh10:
	adrp	x9, l_.str@PAGE
Lloh11:
	add	x9, x9, l_.str@PAGEOFF
Lloh12:
	adrp	x10, l_.str.1@PAGE
Lloh13:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x0, x8
	csel	x0, x10, x9, eq
	bl	_DBG_printk
LBB0_2:
	mov	x0, x20
	bl	_dfx_ctl_update_cam
Lloh14:
	adrp	x8, l_.str.2@PAGE
Lloh15:
	add	x8, x8, l_.str.2@PAGEOFF
	ldr	x9, [x21]
Lloh16:
	adrp	x10, l_.str.3@PAGE
Lloh17:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x0, x9
	csel	x0, x10, x8, eq
	ldr	w1, [x19]
	bl	_DBG_printk
	mov	w0, #0
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_FDDI_K_ALEN,4,2                ; @FDDI_K_ALEN
	.comm	_PI_CMD_ADDR_FILTER_K_SIZE,8,3  ; @PI_CMD_ADDR_FILTER_K_SIZE
	.comm	_PI_FSTATE_K_PASS,4,2           ; @PI_FSTATE_K_PASS
	.comm	_DFX_K_SUCCESS,8,3              ; @DFX_K_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Could not update adapter filters!\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: Adapter filters updated!\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: Could not set new MAC address!\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: Adapter CAM updated with new MAC address\n"

	.no_dead_strip	_dfx_ctl_set_mac_address
.subsections_via_symbols
