	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ti_cm_get_macid                ## -- Begin function ti_cm_get_macid
	.p2align	4, 0x90
_ti_cm_get_macid:                       ## @ti_cm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_of_machine_is_compatible
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_of_machine_is_compatible
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	%rbx, %rdi
	movl	$1584, %esi                     ## imm = 0x630
LBB0_2:
	movl	%r15d, %edx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpsw_am33xx_cm_get_macid       ## TAILCALL
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
LBB0_6:
	movl	%r15d, %edx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_davinci_emac_3517_get_macid    ## TAILCALL
LBB0_7:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	$48, %esi
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	callq	_of_machine_is_compatible
	testq	%rax, %rax
	jne	LBB0_1
## %bb.10:
	leaq	L_.str.5(%rip), %rdi
	callq	_of_machine_is_compatible
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movl	$1300, %esi                     ## imm = 0x514
	jmp	LBB0_6
LBB0_12:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ti,dm8148"

L_.str.1:                               ## @.str.1
	.asciz	"ti,am33xx"

L_.str.2:                               ## @.str.2
	.asciz	"ti,am3517-emac"

L_.str.3:                               ## @.str.3
	.asciz	"ti,dm816-emac"

L_.str.4:                               ## @.str.4
	.asciz	"ti,am43"

L_.str.5:                               ## @.str.5
	.asciz	"ti,dra7"

L_.str.6:                               ## @.str.6
	.asciz	"incompatible machine/device type for reading mac address\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ti_cm_get_macid                ; -- Begin function ti_cm_get_macid
	.p2align	2
_ti_cm_get_macid:                       ; @ti_cm_get_macid
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_of_machine_is_compatible
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_of_machine_is_compatible
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x21
	mov	w1, #1584
LBB0_3:
	mov	x2, x20
	mov	x3, 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
	b	_cpsw_am33xx_cm_get_macid
LBB0_4:
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_of_device_is_compatible
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x21
	mov	w1, #272
LBB0_6:
	mov	x2, x20
	mov	x3, 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
	b	_davinci_emac_3517_get_macid
LBB0_7:
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_of_device_is_compatible
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x21
	mov	w1, #48
	b	LBB0_3
LBB0_9:
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_of_machine_is_compatible
	cbnz	x0, LBB0_2
; %bb.10:
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_of_machine_is_compatible
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x21
	mov	w1, #1300
	b	LBB0_6
LBB0_12:
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_info
Lloh14:
	adrp	x8, _ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ti,dm8148"

l_.str.1:                               ; @.str.1
	.asciz	"ti,am33xx"

l_.str.2:                               ; @.str.2
	.asciz	"ti,am3517-emac"

l_.str.3:                               ; @.str.3
	.asciz	"ti,dm816-emac"

l_.str.4:                               ; @.str.4
	.asciz	"ti,am43"

l_.str.5:                               ; @.str.5
	.asciz	"ti,dra7"

l_.str.6:                               ; @.str.6
	.asciz	"incompatible machine/device type for reading mac address\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
