	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_get_mac_hwinfo
_bnx2x_get_mac_hwinfo:                  ## @bnx2x_get_mac_hwinfo
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_BP_ABS_FUNC
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_BP_PORT
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_eth_zero_addr
	movq	%rbx, %rdi
	callq	_BP_NOMCP
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_BNX2X_ERROR
	movq	(%rbx), %rdi
	callq	_eth_hw_addr_random
	jmp	LBB0_9
LBB0_2:
	movq	%rbx, %rdi
	callq	_IS_MF
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_func_mf_config@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%r15d, %r13
	movl	4(%rax,%r13,8), %esi
	movq	%rbx, %rdi
	callq	_MF_CFG_RD
	movq	%rax, %r15
	movq	(%r12), %rax
	movl	(%rax,%r13,8), %esi
	movq	%rbx, %rdi
	callq	_MF_CFG_RD
	movq	_FUNC_MF_CFG_UPPERMAC_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	je	LBB0_7
## %bb.4:
	movq	_FUNC_MF_CFG_LOWERMAC_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_5:
	movq	_dev_info@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%r14d, %r13
	movl	4(%rax,%r13,8), %esi
	movq	%rbx, %rdi
	callq	_SHMEM_RD
	movq	%rax, %r15
	movq	(%r12), %rax
	movl	(%rax,%r13,8), %esi
	movq	%rbx, %rdi
	callq	_SHMEM_RD
LBB0_6:
	movq	(%rbx), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_bnx2x_set_mac_buf
LBB0_7:
	movq	%rbx, %rdi
	callq	_CNIC_SUPPORT
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_bnx2x_get_cnic_mac_hwinfo
LBB0_9:
	movq	%rbx, %rdi
	callq	_BP_NOMCP
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_dev_info@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%r14d, %r12
	movl	4(%rax,%r12,8), %esi
	movq	%rbx, %rdi
	callq	_SHMEM_RD
	movq	%rax, %r14
	movq	(%r15), %rax
	movl	(%rax,%r12,8), %esi
	movq	%rbx, %rdi
	callq	_SHMEM_RD
	movl	24(%rbx), %edi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_bnx2x_set_mac_buf
	movq	_HAS_PHYS_PORT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
LBB0_11:
	movl	16(%rbx), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	(%rbx), %rax
	movq	8(%rbx), %rdi
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: random MAC workaround active\n"

	.comm	_func_mf_config,8,3             ## @func_mf_config
	.comm	_FUNC_MF_CFG_UPPERMAC_DEFAULT,8,3 ## @FUNC_MF_CFG_UPPERMAC_DEFAULT
	.comm	_FUNC_MF_CFG_LOWERMAC_DEFAULT,8,3 ## @FUNC_MF_CFG_LOWERMAC_DEFAULT
	.comm	_dev_info,8,3                   ## @dev_info
	.comm	_HAS_PHYS_PORT_ID,4,2           ## @HAS_PHYS_PORT_ID
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.1:                               ## @.str.1
	.asciz	"bad Ethernet MAC address configuration: %pM\nchange it manually before bringing up the appropriate network interface\n"

	.no_dead_strip	_bnx2x_get_mac_hwinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_get_mac_hwinfo
_bnx2x_get_mac_hwinfo:                  ; @bnx2x_get_mac_hwinfo
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_BP_ABS_FUNC
	mov	x21, x0
	mov	x0, x19
	bl	_BP_PORT
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_eth_zero_addr
	mov	x0, x19
	bl	_BP_NOMCP
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERROR
	ldr	x0, [x19]
	bl	_eth_hw_addr_random
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	bl	_IS_MF
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x22, _func_mf_config@GOTPAGE
Lloh3:
	ldr	x22, [x22, _func_mf_config@GOTPAGEOFF]
	ldr	x8, [x22]
	sbfiz	x23, x21, #3, #32
	add	x8, x8, x23
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_MF_CFG_RD
	mov	x21, x0
	ldr	x8, [x22]
	ldr	w1, [x8, x23]
	mov	x0, x19
	bl	_MF_CFG_RD
Lloh4:
	adrp	x8, _FUNC_MF_CFG_UPPERMAC_DEFAULT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FUNC_MF_CFG_UPPERMAC_DEFAULT@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _FUNC_MF_CFG_LOWERMAC_DEFAULT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FUNC_MF_CFG_LOWERMAC_DEFAULT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x21, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_5
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x22, _dev_info@GOTPAGE
Lloh11:
	ldr	x22, [x22, _dev_info@GOTPAGEOFF]
	ldr	x8, [x22]
	sbfiz	x23, x20, #3, #32
	add	x8, x8, x23
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_SHMEM_RD
	mov	x21, x0
	ldr	x8, [x22]
	ldr	w1, [x8, x23]
	mov	x0, x19
	bl	_SHMEM_RD
LBB0_5:
	mov	x1, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x2, x21
	bl	_bnx2x_set_mac_buf
LBB0_6:
	mov	x0, x19
	bl	_CNIC_SUPPORT
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_bnx2x_get_cnic_mac_hwinfo
LBB0_8:
	mov	x0, x19
	bl	_BP_NOMCP
	cbnz	x0, LBB0_10
; %bb.9:
Lloh12:
	adrp	x21, _dev_info@GOTPAGE
Lloh13:
	ldr	x21, [x21, _dev_info@GOTPAGEOFF]
	ldr	x8, [x21]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sbfiz	x22, x20, #3, #32
	add	x8, x8, x22
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_SHMEM_RD
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w1, [x8, x22]
	mov	x0, x19
	bl	_SHMEM_RD
	mov	x1, x0
	ldr	w0, [x19, #24]
	mov	x2, x20
	bl	_bnx2x_set_mac_buf
Lloh14:
	adrp	x8, _HAS_PHYS_PORT_ID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HAS_PHYS_PORT_ID@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
LBB0_10:
	ldr	w0, [x19, #16]
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_12
; %bb.11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldp	x8, x0, [x19]
	ldr	w2, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: random MAC workaround active\n"

	.comm	_func_mf_config,8,3             ; @func_mf_config
	.comm	_FUNC_MF_CFG_UPPERMAC_DEFAULT,8,3 ; @FUNC_MF_CFG_UPPERMAC_DEFAULT
	.comm	_FUNC_MF_CFG_LOWERMAC_DEFAULT,8,3 ; @FUNC_MF_CFG_LOWERMAC_DEFAULT
	.comm	_dev_info,8,3                   ; @dev_info
	.comm	_HAS_PHYS_PORT_ID,4,2           ; @HAS_PHYS_PORT_ID
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.1:                               ; @.str.1
	.asciz	"bad Ethernet MAC address configuration: %pM\nchange it manually before bringing up the appropriate network interface\n"

	.no_dead_strip	_bnx2x_get_mac_hwinfo
.subsections_via_symbols
