	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function awg_get_eaddr
_awg_get_eaddr:                         ## @awg_get_eaddr
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_device_get_softc
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_EMAC_ADDR_HIGH
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_RD4
	movzwl	%ax, %r15d
	xorl	%edi, %edi
	callq	_EMAC_ADDR_LOW
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_RD4
	movl	$64, -100(%rbp)
	cmpl	$-1, %eax
	jne	LBB0_1
## %bb.2:
	cmpl	$65535, %r15d                   ## imm = 0xFFFF
	movl	%r15d, %edx
	jne	LBB0_7
## %bb.3:
	movq	_AW_SID_FUSE_ROOTKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-96(%rbp), %rsi
	leaq	-100(%rbp), %rdx
	callq	_aw_sid_get_fuse
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	xorl	%eax, %eax
	callq	_arc4random
	movzwl	%ax, %edx
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	orl	$242, %eax
	jmp	LBB0_7
LBB0_1:
	movl	%r15d, %edx
	jmp	LBB0_7
LBB0_4:
	movl	-84(%rbp), %eax
	movl	-48(%rbp), %edx
	movl	%edx, %edi
	orl	%eax, %edi
	movl	-44(%rbp), %ebx
	movl	-40(%rbp), %ecx
	movl	%ebx, %esi
	orl	%ecx, %esi
	orl	%edi, %esi
	movl	-36(%rbp), %edi
	orl	%edi, %esi
	je	LBB0_6
## %bb.5:
	shll	$24, %ebx
	shll	$16, %edx
	shll	$8, %eax
	orl	%edx, %eax
	orl	%ebx, %eax
	orl	$2, %eax
	shll	$8, %edi
	orl	%ecx, %edi
	movl	%edi, %edx
LBB0_7:
	movzbl	%al, %ecx
	movl	%ecx, (%r14)
	movzbl	%ah, %ecx
	movl	%ecx, 4(%r14)
	movl	%eax, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 8(%r14)
	shrl	$24, %eax
	movl	%eax, 12(%r14)
	movzbl	%dl, %eax
	movl	%eax, 16(%r14)
	movzbl	%dh, %eax
	movl	%eax, 20(%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AW_SID_FUSE_ROOTKEY,4,2        ## @AW_SID_FUSE_ROOTKEY
	.no_dead_strip	_awg_get_eaddr
.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 awg_get_eaddr
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_awg_get_eaddr:                         ; @awg_get_eaddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_device_get_softc
	mov	x20, x0
	mov	w0, #0
	bl	_EMAC_ADDR_HIGH
	mov	x1, x0
	mov	x0, x20
	bl	_RD4
	and	w21, w0, #0xffff
	mov	w0, #0
	bl	_EMAC_ADDR_LOW
	mov	x1, x0
	mov	x0, x20
	bl	_RD4
	mov	w8, #64
	str	w8, [sp, #4]
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.1:
	mov	w8, #65535
	cmp	w21, w8
	b.ne	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _AW_SID_FUSE_ROOTKEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AW_SID_FUSE_ROOTKEY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_aw_sid_get_fuse
	cbz	x0, LBB0_4
LBB0_3:
	bl	_arc4random
	mov	w8, #242
	and	w21, w0, #0xffff
	bfxil	w0, w8, #0, #16
	b	LBB0_6
LBB0_4:
	ldr	w8, [sp, #20]
	ldp	w9, w11, [sp, #56]
	orr	w12, w9, w8
	ldr	w10, [sp, #64]
	orr	w12, w12, w11
	orr	w13, w12, w10
	ldr	w12, [sp, #68]
	orr	w13, w13, w12
	cbz	w13, LBB0_3
; %bb.5:
	lsl	w8, w8, #8
	orr	w8, w8, w9, lsl #16
	orr	w8, w8, w11, lsl #24
	orr	w0, w8, #0x2
	orr	w21, w10, w12, lsl #8
LBB0_6:
	and	w8, w0, #0xff
	str	w8, [x19]
	dup.2s	v0, w0
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [x19, #4]
	lsr	w8, w0, #24
	and	w9, w21, #0xff
	stp	w8, w9, [x19, #12]
	ubfx	w8, w21, #8, #8
	str	w8, [x19, #20]
	ldur	x8, [x29, #-40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AW_SID_FUSE_ROOTKEY,4,2        ; @AW_SID_FUSE_ROOTKEY
	.no_dead_strip	_awg_get_eaddr
.subsections_via_symbols
