	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_mac_addr_query          ## -- Begin function be_cmd_mac_addr_query
	.p2align	4, 0x90
_be_cmd_mac_addr_query:                 ## @be_cmd_mac_addr_query
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_spin_lock_bh
	movq	%r15, %rdi
	callq	_wrb_from_mccq
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_embedded_payload
	movq	%rax, %r14
	leaq	16(%rax), %rdi
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OPCODE_COMMON_NTWK_MAC_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$20, %ecx
	movq	%r13, %r8
	xorl	%r9d, %r9d
	callq	_be_wrb_cmd_hdr_prepare
	movq	_MAC_ADDRESS_TYPE_NETWORK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	$1, %eax
	testl	%r12d, %r12d
	jne	LBB0_4
## %bb.3:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le16
	movl	%eax, 8(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_cpu_to_le32
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
LBB0_4:
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_be_mcc_notify_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_embedded_payload
	movl	(%rax), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ## @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_NTWK_MAC_QUERY,4,2 ## @OPCODE_COMMON_NTWK_MAC_QUERY
	.comm	_MAC_ADDRESS_TYPE_NETWORK,4,2   ## @MAC_ADDRESS_TYPE_NETWORK
	.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_mac_addr_query          ; -- Begin function be_cmd_mac_addr_query
	.p2align	2
_be_cmd_mac_addr_query:                 ; @be_cmd_mac_addr_query
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x24, x3
	mov	x25, x2
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock_bh
	mov	x0, x19
	bl	_wrb_from_mccq
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_embedded_payload
	mov	x23, x0
	add	x0, x0, #16
Lloh0:
	adrp	x8, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _OPCODE_COMMON_NTWK_MAC_QUERY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPCODE_COMMON_NTWK_MAC_QUERY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #20
	mov	x4, x21
	mov	x5, #0
	bl	_be_wrb_cmd_hdr_prepare
Lloh6:
	adrp	x8, _MAC_ADDRESS_TYPE_NETWORK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_ADDRESS_TYPE_NETWORK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x23, #12]
	cbz	w25, LBB0_4
; %bb.2:
	mov	w8, #1
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_4:
	mov	x0, x24
	bl	_cpu_to_le16
	str	w0, [x23, #8]
	mov	x0, x22
	bl	_cpu_to_le32
	mov	w8, #0
	str	w0, [x23, #4]
LBB0_5:
	str	w8, [x23]
	mov	x0, x19
	bl	_be_mcc_notify_wait
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_embedded_payload
	ldr	w1, [x0]
Lloh12:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_memcpy
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ; @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_NTWK_MAC_QUERY,4,2 ; @OPCODE_COMMON_NTWK_MAC_QUERY
	.comm	_MAC_ADDRESS_TYPE_NETWORK,4,2   ; @MAC_ADDRESS_TYPE_NETWORK
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
.subsections_via_symbols
