	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_get_5709_media
_bnx2_get_5709_media:                   ## @bnx2_get_5709_media
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_BNX2_MISC_DUAL_MEDIA_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BNX2_RD
	movq	_BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andq	%rax, %rcx
	movq	_BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_C@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.1:
	movq	_BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_S@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.2:
	movq	_BNX2_MISC_DUAL_MEDIA_CTRL_STRAP_OVERRIDE@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	movq	_BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL@GOTPCREL(%rip), %rdx
	cmoveq	_BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL_STRAP@GOTPCREL(%rip), %rdx
	movl	$8, %esi
	movl	$21, %ecx
	cmovel	%esi, %ecx
	andq	(%rdx), %rax
                                        ## kill: def $cl killed $cl killed $ecx
	sarq	%cl, %rax
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.4:
	cmpq	$4, %rax
	ja	LBB0_7
## %bb.5:
	movl	$22, %ecx
	btq	%rax, %rcx
	jae	LBB0_7
LBB0_6:
	movq	_BNX2_PHY_FLAG_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	addq	$-4, %rax
	cmpq	$3, %rax
	jb	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_MISC_DUAL_MEDIA_CTRL,4,2  ## @BNX2_MISC_DUAL_MEDIA_CTRL
	.comm	_BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID,8,3 ## @BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID
	.comm	_BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_C,8,3 ## @BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_C
	.comm	_BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_S,8,3 ## @BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_S
	.comm	_BNX2_PHY_FLAG_SERDES,4,2       ## @BNX2_PHY_FLAG_SERDES
	.comm	_BNX2_MISC_DUAL_MEDIA_CTRL_STRAP_OVERRIDE,8,3 ## @BNX2_MISC_DUAL_MEDIA_CTRL_STRAP_OVERRIDE
	.comm	_BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL,8,3 ## @BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL
	.comm	_BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL_STRAP,8,3 ## @BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL_STRAP
	.no_dead_strip	_bnx2_get_5709_media
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_get_5709_media
_bnx2_get_5709_media:                   ; @bnx2_get_5709_media
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _BNX2_MISC_DUAL_MEDIA_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2_MISC_DUAL_MEDIA_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_BNX2_RD
Lloh3:
	adrp	x8, _BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh6:
	adrp	x9, _BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_C@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_C@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.1:
Lloh9:
	adrp	x9, _BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_S@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_S@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
Lloh12:
	adrp	x8, _BNX2_MISC_DUAL_MEDIA_CTRL_STRAP_OVERRIDE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNX2_MISC_DUAL_MEDIA_CTRL_STRAP_OVERRIDE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	tst	x8, x0
	mov	w8, #21
	mov	w9, #8
Lloh15:
	adrp	x10, _BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL_STRAP@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL_STRAP@GOTPAGEOFF]
Lloh17:
	adrp	x11, _BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL@GOTPAGE
Lloh18:
	ldr	x11, [x11, _BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	csel	x9, x10, x11, eq
	ldr	x9, [x9]
	and	x9, x9, x0
	asr	x8, x9, x8
	ldr	x9, [x19]
	cbz	x9, LBB0_6
; %bb.3:
	cmp	x8, #4
	mov	w9, #1
	lsl	x8, x9, x8
	mov	w9, #22
	and	x8, x8, x9
	ccmp	x8, #0, #4, ls
	b.eq	LBB0_5
LBB0_4:
Lloh19:
	adrp	x8, _BNX2_PHY_FLAG_SERDES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BNX2_PHY_FLAG_SERDES@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	sub	x8, x8, #4
	cmp	x8, #3
	b.lo	LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_MISC_DUAL_MEDIA_CTRL,4,2  ; @BNX2_MISC_DUAL_MEDIA_CTRL
	.comm	_BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID,8,3 ; @BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID
	.comm	_BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_C,8,3 ; @BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_C
	.comm	_BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_S,8,3 ; @BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_S
	.comm	_BNX2_PHY_FLAG_SERDES,4,2       ; @BNX2_PHY_FLAG_SERDES
	.comm	_BNX2_MISC_DUAL_MEDIA_CTRL_STRAP_OVERRIDE,8,3 ; @BNX2_MISC_DUAL_MEDIA_CTRL_STRAP_OVERRIDE
	.comm	_BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL,8,3 ; @BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL
	.comm	_BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL_STRAP,8,3 ; @BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL_STRAP
	.no_dead_strip	_bnx2_get_5709_media
.subsections_via_symbols
