	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pasemi_get_mac_addr
_pasemi_get_mac_addr:                   ## @pasemi_get_mac_addr
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_pci_device_to_OF_node
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	leaq	-68(%rbp), %rdx
	movq	%rax, %rdi
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	cmpl	$6, -68(%rbp)
	jne	LBB0_5
## %bb.3:
	movl	(%r14), %edi
	movq	%rax, %rsi
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_15
LBB0_7:
	leaq	-60(%rbp), %rcx
	leaq	-56(%rbp), %r8
	leaq	-52(%rbp), %r9
	leaq	-48(%rbp), %r10
	leaq	-44(%rbp), %rbx
	leaq	L_.str.4(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movq	%rax, %rdi
	pushq	%rbx
	pushq	%r10
	callq	_sscanf
	addq	$16, %rsp
	cmpl	$6, %eax
	jne	LBB0_10
## %bb.8:
	movl	(%r14), %edi
	leaq	-64(%rbp), %rsi
LBB0_9:
	movl	$6, %edx
	callq	_memcpy
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:
	subl	(%rax), %r12d
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_16
## %bb.14:
	movl	%r12d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No device node for mac, not configuring\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"local-mac-address"

L_.str.2:                               ## @.str.2
	.asciz	"mac-address"

L_.str.3:                               ## @.str.3
	.asciz	"no mac address in device tree, not configuring\n"

L_.str.4:                               ## @.str.4
	.asciz	"%hhx:%hhx:%hhx:%hhx:%hhx:%hhx"

L_.str.5:                               ## @.str.5
	.asciz	"can't parse mac address, not configuring\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pasemi_get_mac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pasemi_get_mac_addr
_pasemi_get_mac_addr:                   ; @pasemi_get_mac_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_pci_device_to_OF_node
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_of_get_property
	mov	x8, x0
	ldr	w9, [sp, #12]
	cmp	x0, #0
	ccmp	w9, #6, #0, ne
	b.eq	LBB0_8
; %bb.2:
	cbnz	x8, LBB0_4
; %bb.3:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	bl	_of_get_property
	mov	x8, x0
	cbz	x0, LBB0_14
LBB0_4:
	add	x9, sp, #16
	add	x3, x9, #4
	add	x4, x9, #8
	add	x5, x9, #12
	add	x6, x9, #16
	add	x7, x9, #20
Lloh7:
	adrp	x1, l_.str.4@PAGE
Lloh8:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #16
	mov	x0, x8
	bl	_sscanf
	cmp	w0, #6
	b.ne	LBB0_10
; %bb.5:
	ldr	w0, [x20]
	add	x1, sp, #16
	b	LBB0_9
LBB0_6:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_7:
Lloh11:
	adrp	x8, _ENOENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	w0, [x20]
	mov	x1, x8
LBB0_9:
	mov	w2, #6
	bl	_memcpy
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldr	x8, [sp, #40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	b	LBB0_7
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No device node for mac, not configuring\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"local-mac-address"

l_.str.2:                               ; @.str.2
	.asciz	"mac-address"

l_.str.3:                               ; @.str.3
	.asciz	"no mac address in device tree, not configuring\n"

l_.str.4:                               ; @.str.4
	.asciz	"%hhx:%hhx:%hhx:%hhx:%hhx:%hhx"

l_.str.5:                               ; @.str.5
	.asciz	"can't parse mac address, not configuring\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pasemi_get_mac_addr
.subsections_via_symbols
