	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_sfp_detection_subtask
_ixgbe_sfp_detection_subtask:           ## @ixgbe_sfp_detection_subtask
	.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
	movl	(%rdi), %eax
	movq	_IXGBE_FLAG2_SEARCH_FOR_SFP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_IXGBE_FLAG2_SFP_NEEDS_RESET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
LBB0_2:
	movq	___IXGBE_IN_SFP_INIT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	16(%rbx), %r14
	movq	%r14, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_16
## %bb.3:
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	*32(%rbx)
	movq	%rax, %r15
	movq	_IXGBE_ERR_SFP_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_14
## %bb.4:
	movq	_IXGBE_ERR_SFP_NOT_PRESENT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_6
## %bb.5:
	movq	_IXGBE_FLAG2_SFP_NEEDS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_6:
	testq	%r15, %r15
	je	LBB0_7
LBB0_14:
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_IXGBE_ERR_SFP_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_16
## %bb.15:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_NETREG_REGISTERED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.17:
	leaq	L_.str.1(%rip), %rdi
	callq	_e_dev_err
	leaq	L_.str.2(%rip), %rdi
	callq	_e_dev_err
	movq	8(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_unregister_netdev              ## TAILCALL
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%rbx), %eax
	movq	_IXGBE_FLAG2_SFP_NEEDS_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_8
## %bb.9:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	48(%rbx), %rax
	movq	_ixgbe_mac_82598EB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	*40(%rbx)
	jmp	LBB0_12
LBB0_8:
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_11:
	movq	%r12, %rdi
	callq	*56(%rbx)
LBB0_12:
	movq	%rax, %r15
	movq	_IXGBE_ERR_SFP_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_14
## %bb.13:
	movq	_IXGBE_FLAG_NEED_LINK_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_e_info
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_FLAG2_SEARCH_FOR_SFP,4,2 ## @IXGBE_FLAG2_SEARCH_FOR_SFP
	.comm	_IXGBE_FLAG2_SFP_NEEDS_RESET,4,2 ## @IXGBE_FLAG2_SFP_NEEDS_RESET
	.comm	___IXGBE_IN_SFP_INIT,4,2        ## @__IXGBE_IN_SFP_INIT
	.comm	_IXGBE_ERR_SFP_NOT_SUPPORTED,8,3 ## @IXGBE_ERR_SFP_NOT_SUPPORTED
	.comm	_IXGBE_ERR_SFP_NOT_PRESENT,8,3  ## @IXGBE_ERR_SFP_NOT_PRESENT
	.comm	_ixgbe_mac_82598EB,8,3          ## @ixgbe_mac_82598EB
	.comm	_IXGBE_FLAG_NEED_LINK_CONFIG,4,2 ## @IXGBE_FLAG_NEED_LINK_CONFIG
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"detected SFP+: %d\n"

	.comm	_NETREG_REGISTERED,8,3          ## @NETREG_REGISTERED
L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize because an unsupported SFP+ module type was detected.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Reload the driver after installing a supported module.\n"

	.no_dead_strip	_ixgbe_sfp_detection_subtask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_sfp_detection_subtask
_ixgbe_sfp_detection_subtask:           ; @ixgbe_sfp_detection_subtask
	.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
	mov	x21, x0
	ldr	w8, [x21], #24
Lloh0:
	adrp	x9, _IXGBE_FLAG2_SEARCH_FOR_SFP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IXGBE_FLAG2_SEARCH_FOR_SFP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _IXGBE_FLAG2_SFP_NEEDS_RESET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IXGBE_FLAG2_SFP_NEEDS_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_2:
Lloh6:
	adrp	x23, ___IXGBE_IN_SFP_INIT@GOTPAGE
Lloh7:
	ldr	x23, [x23, ___IXGBE_IN_SFP_INIT@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x20, x19, #16
	mov	x1, x20
	bl	_test_and_set_bit
	cbnz	x0, LBB0_10
; %bb.3:
	ldr	x8, [x19, #32]
	mov	x0, x21
	blr	x8
	mov	x22, x0
Lloh8:
	adrp	x24, _IXGBE_ERR_SFP_NOT_SUPPORTED@GOTPAGE
Lloh9:
	ldr	x24, [x24, _IXGBE_ERR_SFP_NOT_SUPPORTED@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.4:
Lloh10:
	adrp	x8, _IXGBE_ERR_SFP_NOT_PRESENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IXGBE_ERR_SFP_NOT_PRESENT@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _IXGBE_FLAG2_SFP_NEEDS_RESET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IXGBE_FLAG2_SFP_NEEDS_RESET@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	cbz	x22, LBB0_11
LBB0_7:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_clear_bit
	ldr	x8, [x24]
	cmp	x22, x8
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _NETREG_REGISTERED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NETREG_REGISTERED@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dev_err
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_e_dev_err
	ldr	x0, [x19, #8]
	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	_unregister_netdev
LBB0_10:
	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_11:
	ldr	w8, [x19]
Lloh23:
	adrp	x9, _IXGBE_FLAG2_SFP_NEEDS_RESET@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IXGBE_FLAG2_SFP_NEEDS_RESET@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.12:
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [x19, #48]
Lloh26:
	adrp	x9, _ixgbe_mac_82598EB@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ixgbe_mac_82598EB@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.13:
	ldr	x8, [x19, #40]
	b	LBB0_16
LBB0_14:
	mov	x22, #0
	b	LBB0_7
LBB0_15:
	ldr	x8, [x19, #56]
LBB0_16:
	mov	x0, x21
	blr	x8
	mov	x22, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.17:
Lloh29:
	adrp	x8, _IXGBE_FLAG_NEED_LINK_CONFIG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IXGBE_FLAG_NEED_LINK_CONFIG@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldp	w9, w2, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
Lloh32:
	adrp	x8, _probe@GOTPAGE
Lloh33:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	bl	_e_info
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_FLAG2_SEARCH_FOR_SFP,4,2 ; @IXGBE_FLAG2_SEARCH_FOR_SFP
	.comm	_IXGBE_FLAG2_SFP_NEEDS_RESET,4,2 ; @IXGBE_FLAG2_SFP_NEEDS_RESET
	.comm	___IXGBE_IN_SFP_INIT,4,2        ; @__IXGBE_IN_SFP_INIT
	.comm	_IXGBE_ERR_SFP_NOT_SUPPORTED,8,3 ; @IXGBE_ERR_SFP_NOT_SUPPORTED
	.comm	_IXGBE_ERR_SFP_NOT_PRESENT,8,3  ; @IXGBE_ERR_SFP_NOT_PRESENT
	.comm	_ixgbe_mac_82598EB,8,3          ; @ixgbe_mac_82598EB
	.comm	_IXGBE_FLAG_NEED_LINK_CONFIG,4,2 ; @IXGBE_FLAG_NEED_LINK_CONFIG
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"detected SFP+: %d\n"

	.comm	_NETREG_REGISTERED,8,3          ; @NETREG_REGISTERED
l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize because an unsupported SFP+ module type was detected.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Reload the driver after installing a supported module.\n"

	.no_dead_strip	_ixgbe_sfp_detection_subtask
.subsections_via_symbols
