	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function davinci_emac_3517_get_macid
LCPI0_0:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_davinci_emac_3517_get_macid:           ## @davinci_emac_3517_get_macid
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_CTRL_MAC_LO_REG
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_regmap_read
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_CTRL_MAC_HI_REG
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_regmap_read
	movl	-36(%rbp), %ecx
	movl	%ecx, %edx
	shrl	$16, %edx
	movl	%ecx, %esi
	shrl	$8, %esi
	movl	-40(%rbp), %eax
	movd	%edx, %xmm0
	movzbl	%ah, %edx
	movl	%eax, %ebx
	shrl	$16, %ebx
	pinsrd	$1, %esi, %xmm0
	pinsrd	$2, %ecx, %xmm0
	pinsrd	$3, %ebx, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movzbl	%al, %eax
	movdqu	%xmm0, (%r14)
	movl	%edx, 16(%r14)
	movl	%eax, 20(%r14)
LBB0_4:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"syscon"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_davinci_emac_3517_get_macid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function davinci_emac_3517_get_macid
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_davinci_emac_3517_get_macid:           ; @davinci_emac_3517_get_macid
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syscon_regmap_lookup_by_phandle
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_PTR_ERR
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_3:
	mov	x0, x22
	mov	x1, x21
	bl	_CTRL_MAC_LO_REG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	mov	x0, x22
	mov	x1, x21
	bl	_CTRL_MAC_HI_REG
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_regmap_read
	ldr	w8, [sp, #8]
	dup.2s	v0, w8
Lloh5:
	adrp	x9, lCPI0_0@PAGE
Lloh6:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d2, #0x0000ff000000ff
	and.8b	v0, v0, v2
	str	d0, [x19]
	and	w8, w8, #0xff
	ldr	w9, [sp, #12]
	dup.2s	v0, w9
	str	w8, [x19, #8]
	ushl.2s	v0, v0, v1
	and.8b	v0, v0, v2
	stur	d0, [x19, #12]
	and	w8, w9, #0xff
	str	w8, [x19, #20]
LBB0_4:
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"syscon"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_davinci_emac_3517_get_macid
.subsections_via_symbols
