	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_get_mac_from_list       ## -- Begin function be_cmd_get_mac_from_list
	.p2align	4, 0x90
_be_cmd_get_mac_from_list:              ## @be_cmd_get_mac_from_list
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %rbx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	leaq	-56(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	$48, -56(%rbp)
	movq	(%r13), %rdi
	leaq	-52(%rbp), %rdx
	movl	$48, %esi
	callq	_pci_alloc_consistent
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	leaq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	%r13, %rdi
	callq	_wrb_from_mccq
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx
	leaq	40(%rbx), %rdi
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_OPCODE_COMMON_GET_MAC_LIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	-56(%rbp), %ecx
	leaq	-56(%rbp), %r9
	movq	%rax, %r8
	callq	_be_wrb_cmd_hdr_prepare
	movl	%r12d, 40(%rbx)
	movq	_MAC_ADDRESS_TYPE_NETWORK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	cmpl	$0, (%r14)
	je	LBB0_5
## %bb.6:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, 32(%rbx)
	movl	12(%r13), %edi
	callq	_cpu_to_le16
	movl	%eax, 28(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_18
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_17
LBB0_5:
	movl	$1, %eax
LBB0_7:
	movl	%eax, (%rbx)
	movq	%r13, %rdi
	callq	_be_mcc_notify_wait
	movl	%eax, %r15d
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_17
## %bb.8:
	movq	-48(%rbp), %r15
	cmpl	$0, (%r14)
	je	LBB0_10
## %bb.9:
	movl	24(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_10:
	movl	8(%r15), %eax
	addl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.11:
	movl	%eax, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %r14
	movl	8(%r14,%rbx), %edi
	callq	_le16_to_cpu
	cmpl	$4, %eax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	$12, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_12
LBB0_15:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	16(%r15), %rax
	movl	(%rax), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	jmp	LBB0_16
LBB0_13:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	4(%r14,%rbx), %edi
	callq	_le32_to_cpu
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_16:
	xorl	%r15d, %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_17:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	(%r13), %rdi
	movq	-48(%rbp), %rdx
	movl	-56(%rbp), %esi
	movl	-52(%rbp), %ecx
	callq	_pci_free_consistent
LBB0_18:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory allocation failure during GET_MAC_LIST\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ## @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_GET_MAC_LIST,4,2 ## @OPCODE_COMMON_GET_MAC_LIST
	.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_get_mac_from_list       ; -- Begin function be_cmd_get_mac_from_list
	.p2align	2
_be_cmd_get_mac_from_list:              ; @be_cmd_get_mac_from_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	mov	x20, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w8, #48
	str	w8, [sp]
	ldr	x0, [x19]
	orr	x2, x20, #0x4
	mov	w1, #48
	bl	_pci_alloc_consistent
	str	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.1:
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_bh
	mov	x0, x19
	bl	_wrb_from_mccq
	cbz	x0, LBB0_5
; %bb.2:
	mov	x4, x0
	ldr	x25, [sp, #8]
Lloh0:
	adrp	x8, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
	add	x0, x25, #40
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _OPCODE_COMMON_GET_MAC_LIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPCODE_COMMON_GET_MAC_LIST@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	w3, [sp]
	mov	x5, sp
	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]
	stp	w8, w24, [x25, #36]
	ldr	w8, [x23]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	w0, [x22]
	bl	_cpu_to_le32
	str	w0, [x25, #32]
	ldr	w0, [x19, #12]
	bl	_cpu_to_le16
	mov	w8, #0
	str	w0, [x25, #28]
	b	LBB0_7
LBB0_4:
	ldr	x0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_17
LBB0_5:
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_16
LBB0_6:
	mov	w8, #1
LBB0_7:
	str	w8, [x25]
	mov	x0, x19
	bl	_be_mcc_notify_wait
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.8:
	ldr	x24, [sp, #8]
	ldr	w8, [x23]
	cbz	w8, LBB0_10
; %bb.9:
	ldr	w1, [x24, #24]
	b	LBB0_15
LBB0_10:
	ldp	w8, w9, [x24, #4]
	add	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x25, #0
	mov	w9, #12
	umull	x26, w8, w9
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #16]
	add	x27, x8, x25
	ldr	w0, [x27, #8]
	bl	_le16_to_cpu
	cmp	w0, #4
	b.eq	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x25, x25, #12
	cmp	x26, x25
	b.ne	LBB0_12
LBB0_14:
	str	wzr, [x23]
	ldr	x8, [x24, #16]
	ldr	w1, [x8]
LBB0_15:
Lloh17:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_memcpy
	mov	w24, #0
LBB0_16:
	mov	x0, x20
	bl	_spin_unlock_bh
	ldr	x0, [x19]
	ldr	x2, [sp, #8]
	ldp	w1, w3, [sp]
	bl	_pci_free_consistent
LBB0_17:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_18:
	mov	w8, #1
	str	w8, [x23]
	ldr	w0, [x27, #4]
	bl	_le32_to_cpu
	mov	w24, #0
	str	w0, [x22]
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory allocation failure during GET_MAC_LIST\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ; @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_GET_MAC_LIST,4,2 ; @OPCODE_COMMON_GET_MAC_LIST
	.comm	_MAC_ADDRESS_TYPE_NETWORK,4,2   ; @MAC_ADDRESS_TYPE_NETWORK
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
.subsections_via_symbols
