	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macb_get_hwaddr
_macb_get_hwaddr:                       ## @macb_get_hwaddr
	.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	$32, %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	_SA1B@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_macb_or_gem_readl
	movl	%eax, %ebx
	movq	_SA1T@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_macb_or_gem_readl
	movzbl	%bl, %ecx
	movl	%ecx, -64(%rbp)
	movzbl	%bh, %ecx
	movl	%ecx, -60(%rbp)
	movl	%ebx, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, -56(%rbp)
	shrl	$24, %ebx
	movl	%ebx, -52(%rbp)
	movzbl	%al, %ecx
	movl	%ecx, -48(%rbp)
	movzbl	%ah, %eax
	movl	%eax, -44(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	(%r12), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	callq	_macb_or_gem_readl
	movl	%eax, %ebx
	movq	(%r15), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	callq	_macb_or_gem_readl
	movzbl	%bl, %ecx
	movl	%ecx, -64(%rbp)
	movzbl	%bh, %ecx
	movl	%ecx, -60(%rbp)
	movl	%ebx, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, -56(%rbp)
	shrl	$24, %ebx
	movl	%ebx, -52(%rbp)
	movzbl	%al, %ecx
	movl	%ecx, -48(%rbp)
	movzbl	%ah, %eax
	movl	%eax, -44(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	(%r12), %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	callq	_macb_or_gem_readl
	movl	%eax, %ebx
	movq	(%r15), %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	callq	_macb_or_gem_readl
	movzbl	%bl, %ecx
	movl	%ecx, -64(%rbp)
	movzbl	%bh, %ecx
	movl	%ecx, -60(%rbp)
	movl	%ebx, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, -56(%rbp)
	shrl	$24, %ebx
	movl	%ebx, -52(%rbp)
	movzbl	%al, %ecx
	movl	%ecx, -48(%rbp)
	movzbl	%ah, %eax
	movl	%eax, -44(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	(%r12), %rsi
	addq	$24, %rsi
	movq	%r14, %rdi
	callq	_macb_or_gem_readl
	movl	%eax, %ebx
	movq	(%r15), %rsi
	addq	$24, %rsi
	movq	%r14, %rdi
	callq	_macb_or_gem_readl
	movzbl	%bl, %ecx
	movl	%ecx, -64(%rbp)
	movzbl	%bh, %ecx
	movl	%ecx, -60(%rbp)
	movl	%ebx, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, -56(%rbp)
	shrl	$24, %ebx
	movl	%ebx, -52(%rbp)
	movzbl	%al, %ecx
	movl	%ecx, -48(%rbp)
	movzbl	%ah, %eax
	movl	%eax, -44(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	movl	$24, %edx
	callq	_memcpy
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	(%r14), %rdi
	callq	_eth_hw_addr_random
	jmp	LBB0_6
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SA1B,8,3                       ## @SA1B
	.comm	_SA1T,8,3                       ## @SA1T
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid hw address, using random\n"

	.no_dead_strip	_macb_get_hwaddr
.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 macb_get_hwaddr
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_macb_get_hwaddr:                       ; @macb_get_hwaddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x21, _SA1B@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SA1B@GOTPAGEOFF]
	ldr	x1, [x21]
	bl	_macb_or_gem_readl
	mov	x20, x0
Lloh5:
	adrp	x22, _SA1T@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SA1T@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	x0, x19
	bl	_macb_or_gem_readl
	and	w8, w20, #0xff
	str	w8, [sp]
	dup.2s	v0, w20
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v8
	movi	d9, #0x0000ff000000ff
	and.8b	v0, v0, v9
	stur	d0, [sp, #4]
	lsr	w8, w20, #24
	and	w9, w0, #0xff
	stp	w8, w9, [sp, #12]
	ubfx	w8, w0, #8, #8
	str	w8, [sp, #20]
	mov	x0, sp
	bl	_is_valid_ether_addr
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x21]
	add	x1, x8, #8
	mov	x0, x19
	bl	_macb_or_gem_readl
	mov	x20, x0
	ldr	x8, [x22]
	add	x1, x8, #8
	mov	x0, x19
	bl	_macb_or_gem_readl
	and	w8, w20, #0xff
	str	w8, [sp]
	dup.2s	v0, w20
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	stur	d0, [sp, #4]
	lsr	w8, w20, #24
	and	w9, w0, #0xff
	stp	w8, w9, [sp, #12]
	ubfx	w8, w0, #8, #8
	str	w8, [sp, #20]
	mov	x0, sp
	bl	_is_valid_ether_addr
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x21]
	add	x1, x8, #16
	mov	x0, x19
	bl	_macb_or_gem_readl
	mov	x20, x0
	ldr	x8, [x22]
	add	x1, x8, #16
	mov	x0, x19
	bl	_macb_or_gem_readl
	and	w8, w20, #0xff
	str	w8, [sp]
	dup.2s	v0, w20
	ushl.2s	v0, v0, v8
	movi	d9, #0x0000ff000000ff
	and.8b	v0, v0, v9
	stur	d0, [sp, #4]
	lsr	w8, w20, #24
	and	w9, w0, #0xff
	stp	w8, w9, [sp, #12]
	ubfx	w8, w0, #8, #8
	str	w8, [sp, #20]
	mov	x0, sp
	bl	_is_valid_ether_addr
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x21]
	add	x1, x8, #24
	mov	x0, x19
	bl	_macb_or_gem_readl
	mov	x20, x0
	ldr	x8, [x22]
	add	x1, x8, #24
	mov	x0, x19
	bl	_macb_or_gem_readl
	and	w8, w20, #0xff
	str	w8, [sp]
	dup.2s	v0, w20
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	stur	d0, [sp, #4]
	lsr	w8, w20, #24
	and	w9, w0, #0xff
	stp	w8, w9, [sp, #12]
	ubfx	w8, w0, #8, #8
	str	w8, [sp, #20]
	mov	x0, sp
	bl	_is_valid_ether_addr
	cbz	x0, LBB0_7
LBB0_4:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, sp
	mov	w2, #24
	bl	_memcpy
LBB0_5:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	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
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x0, [x19]
	bl	_eth_hw_addr_random
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SA1B,8,3                       ; @SA1B
	.comm	_SA1T,8,3                       ; @SA1T
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid hw address, using random\n"

	.no_dead_strip	_macb_get_hwaddr
.subsections_via_symbols
