	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_get_perm_mac            ## -- Begin function be_cmd_get_perm_mac
	.p2align	4, 0x90
_be_cmd_get_perm_mac:                   ## @be_cmd_get_perm_mac
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, %rdi
	callq	_BEx_chip
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_be_physfn
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_3
LBB0_5:
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_be_cmd_get_mac_from_list
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
LBB0_3:
	xorl	%r8d, %r8d
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_be_cmd_mac_addr_query          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_get_perm_mac            ; -- Begin function be_cmd_get_perm_mac
	.p2align	2
_be_cmd_get_perm_mac:                   ; @be_cmd_get_perm_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x1
	mov	w1, #0
	bl	_memset
	mov	x0, x20
	bl	_BEx_chip
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_be_physfn
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	mov	w3, #0
	b	LBB0_5
LBB0_3:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	bl	_be_cmd_get_mac_from_list
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	w3, [x20]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
LBB0_5:
	mov	w4, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_be_cmd_mac_addr_query
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
.subsections_via_symbols
