	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_set_mac
_pch_gbe_set_mac:                       ## @pch_gbe_set_mac
	.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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r15), %esi
	movl	(%rbx), %edi
	movl	4(%rbx), %edx
	callq	_memcpy
	movl	8(%r14), %edi
	movl	(%r15), %esi
	movl	4(%rbx), %edx
	callq	_memcpy
	movl	8(%r14), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_pch_gbe_mac_mar_set
	jmp	LBB0_3
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	8(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	(%r14), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	callq	_ioread32
	movl	%eax, %r12d
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_ioread32
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ret_val : 0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"dev_addr : %pM\n"

L_.str.2:                               ## @.str.2
	.asciz	"mac_addr : %pM\n"

L_.str.3:                               ## @.str.3
	.asciz	"MAC_ADR1AB reg : 0x%08x 0x%08x\n"

	.no_dead_strip	_pch_gbe_set_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_gbe_set_mac
_pch_gbe_set_mac:                       ; @pch_gbe_set_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x21]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x21]
	ldp	w0, w2, [x19]
	bl	_memcpy
	ldr	w0, [x20, #8]
	ldr	w1, [x21]
	ldr	w2, [x19, #4]
	bl	_memcpy
	ldr	w1, [x20, #8]
	mov	x0, x20
	mov	w2, #0
	bl	_pch_gbe_mac_mar_set
	mov	w21, #0
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_netdev_dbg
	ldr	w2, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	ldr	w2, [x20, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x0, x8, #4
	bl	_ioread32
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_ioread32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_netdev_dbg
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ret_val : 0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"dev_addr : %pM\n"

l_.str.2:                               ; @.str.2
	.asciz	"mac_addr : %pM\n"

l_.str.3:                               ; @.str.3
	.asciz	"MAC_ADR1AB reg : 0x%08x 0x%08x\n"

	.no_dead_strip	_pch_gbe_set_mac
.subsections_via_symbols
