	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alx_get_perm_macaddr           ## -- Begin function alx_get_perm_macaddr
	.p2align	4, 0x90
_alx_get_perm_macaddr:                  ## @alx_get_perm_macaddr
	.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	%rsi, %r14
	movq	%rdi, %r15
	callq	_alx_read_macaddr
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	_ALX_SLD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_ALX_SLD_STAT@GOTPCREL(%rip), %rax
	movq	_ALX_SLD_START@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	orl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	callq	_alx_wait_reg
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movl	(%r12), %esi
	movl	(%rbx), %edx
	orl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_alx_write_mem32
	movl	(%r12), %esi
	movl	(%rbx), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_alx_wait_reg
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_alx_read_macaddr
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	movq	_ALX_EFLD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_alx_read_mem32
	movl	%eax, -36(%rbp)
	movq	_ALX_EFLD_F_EXIST@GOTPCREL(%rip), %rcx
	movq	_ALX_EFLD_E_EXIST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_8
## %bb.5:
	movl	(%rbx), %esi
	movq	_ALX_EFLD_STAT@GOTPCREL(%rip), %rax
	movq	_ALX_EFLD_START@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	callq	_alx_wait_reg
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	(%rbx), %esi
	movl	(%r12), %edx
	orl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_alx_write_mem32
	movl	(%rbx), %esi
	movl	(%r12), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_alx_wait_reg
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_alx_read_macaddr
	testq	%rax, %rax
	jne	LBB0_9
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALX_SLD,4,2                    ## @ALX_SLD
	.comm	_ALX_SLD_STAT,4,2               ## @ALX_SLD_STAT
	.comm	_ALX_SLD_START,4,2              ## @ALX_SLD_START
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ALX_EFLD,4,2                   ## @ALX_EFLD
	.comm	_ALX_EFLD_F_EXIST,4,2           ## @ALX_EFLD_F_EXIST
	.comm	_ALX_EFLD_E_EXIST,4,2           ## @ALX_EFLD_E_EXIST
	.comm	_ALX_EFLD_STAT,4,2              ## @ALX_EFLD_STAT
	.comm	_ALX_EFLD_START,4,2             ## @ALX_EFLD_START
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alx_get_perm_macaddr           ; -- Begin function alx_get_perm_macaddr
	.p2align	2
_alx_get_perm_macaddr:                  ; @alx_get_perm_macaddr
	.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, x1
	mov	x20, x0
	bl	_alx_read_macaddr
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
Lloh0:
	adrp	x21, _ALX_SLD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ALX_SLD@GOTPAGEOFF]
Lloh2:
	adrp	x8, _ALX_SLD_STAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ALX_SLD_STAT@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x22, _ALX_SLD_START@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ALX_SLD_START@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	add	x3, sp, #12
	mov	x0, x20
	bl	_alx_wait_reg
	cbz	w0, LBB0_9
; %bb.3:
	ldr	w1, [x21]
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_alx_write_mem32
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x3, #0
	bl	_alx_wait_reg
	cbz	w0, LBB0_9
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_alx_read_macaddr
	cbnz	x0, LBB0_1
; %bb.5:
Lloh7:
	adrp	x21, _ALX_EFLD@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ALX_EFLD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_alx_read_mem32
	str	w0, [sp, #12]
Lloh9:
	adrp	x8, _ALX_EFLD_F_EXIST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ALX_EFLD_F_EXIST@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ALX_EFLD_E_EXIST@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ALX_EFLD_E_EXIST@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_9
; %bb.6:
Lloh15:
	adrp	x8, _ALX_EFLD_STAT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ALX_EFLD_STAT@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x22, _ALX_EFLD_START@GOTPAGE
Lloh19:
	ldr	x22, [x22, _ALX_EFLD_START@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	add	x3, sp, #12
	mov	x0, x20
	bl	_alx_wait_reg
	cbz	w0, LBB0_9
; %bb.7:
	ldr	w1, [x21]
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_alx_write_mem32
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x3, #0
	bl	_alx_wait_reg
	cbz	w0, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	bl	_alx_read_macaddr
	cbnz	x0, LBB0_1
LBB0_9:
Lloh20:
	adrp	x8, _EIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ALX_SLD,4,2                    ; @ALX_SLD
	.comm	_ALX_SLD_STAT,4,2               ; @ALX_SLD_STAT
	.comm	_ALX_SLD_START,4,2              ; @ALX_SLD_START
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ALX_EFLD,4,2                   ; @ALX_EFLD
	.comm	_ALX_EFLD_F_EXIST,4,2           ; @ALX_EFLD_F_EXIST
	.comm	_ALX_EFLD_E_EXIST,4,2           ; @ALX_EFLD_E_EXIST
	.comm	_ALX_EFLD_STAT,4,2              ; @ALX_EFLD_STAT
	.comm	_ALX_EFLD_START,4,2             ; @ALX_EFLD_START
.subsections_via_symbols
