	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sfp_sm_mod_probe
_sfp_sm_mod_probe:                      ## @sfp_sm_mod_probe
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	leaq	-104(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$80, %r8d
	callq	_sfp_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	cmpl	$80, %eax
	jne	LBB0_7
## %bb.2:
	leaq	-64(%rbp), %r15
	movl	-36(%rbp), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$16, %edx
	callq	_memcmp
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	$39, %esi
	callq	_sfp_check
	movl	-28(%rbp), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_9
## %bb.3:
	leaq	-104(%rbp), %rdi
	movl	$39, %esi
	callq	_sfp_check
	movl	-72(%rbp), %ecx
	cmpl	%ecx, %eax
	je	LBB0_13
## %bb.4:
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.5:
	movl	84(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	leaq	-104(%rbp), %rbx
	movl	$16, %ecx
	movl	$1, %r8d
	movq	%rbx, %r9
	pushq	$1
	pushq	$80
	callq	_print_hex_dump
	addq	$16, %rsp
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	jmp	LBB0_13
LBB0_6:
	movl	84(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movl	84(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
LBB0_8:
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_9:
	movl	84(%r14), %edi
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	leaq	-104(%rbp), %r9
	movl	$16, %ecx
	movl	$1, %r8d
	pushq	$1
	pushq	$80
	callq	_print_hex_dump
	addq	$16, %rsp
	jmp	LBB0_21
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	leaq	-104(%rbp), %rdi
	movl	$39, %esi
	callq	_sfp_check
	movl	-72(%rbp), %ecx
	cmpl	%ecx, %eax
	je	LBB0_13
LBB0_12:
	movl	84(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_13:
	movups	-40(%rbp), %xmm0
	movups	%xmm0, 64(%r14)
	movups	-104(%rbp), %xmm0
	movups	-88(%rbp), %xmm1
	movups	-72(%rbp), %xmm2
	movups	-56(%rbp), %xmm3
	movups	%xmm3, 48(%r14)
	movups	%xmm2, 32(%r14)
	movups	%xmm1, 16(%r14)
	movups	%xmm0, (%r14)
	movl	84(%r14), %edi
	movl	-36(%rbp), %ecx
	movl	-40(%rbp), %r9d
	movl	-44(%rbp), %r10d
	movl	-92(%rbp), %ebx
	movl	-88(%rbp), %eax
	leaq	L_.str.8(%rip), %rsi
	movl	$4, %edx
	movl	$4, %r8d
	pushq	%rbx
	pushq	$4
	pushq	%rax
	pushq	$4
	pushq	%r10
	pushq	$4
	callq	_dev_info
	addq	$48, %rsp
	movq	88(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_20
## %bb.14:
	movq	_SFP_DIAGMON_ADDRMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_16
## %bb.15:
	movl	84(%r14), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_16:
	movq	%r14, %rdi
	callq	_sfp_hwmon_insert
	testl	%eax, %eax
	js	LBB0_19
## %bb.17:
	movl	80(%r14), %edi
	movq	%r14, %rsi
	callq	_sfp_module_insert
	testl	%eax, %eax
	js	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_sfp_sm_mod_hpower
LBB0_19:
	movl	%eax, %ebx
	jmp	LBB0_23
LBB0_20:
	movl	84(%r14), %edi
	movl	44(%r14), %ecx
	movl	48(%r14), %edx
	leaq	L_.str.9(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_22:
	subl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read EEPROM: %d\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"EEPROM short read: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"COTSWORKS       "

L_.str.3:                               ## @.str.3
	.asciz	"EEPROM base structure checksum failure (0x%02x != 0x%02x)\n"

L_.str.4:                               ## @.str.4
	.asciz	"EEPROM base structure checksum failure: 0x%02x != 0x%02x\n"

	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.5:                               ## @.str.5
	.asciz	"sfp EE: "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ## @DUMP_PREFIX_OFFSET
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.6:                               ## @.str.6
	.asciz	"EEPROM extended structure checksum failure (0x%02x != 0x%02x)\n"

L_.str.7:                               ## @.str.7
	.asciz	"EEPROM extended structure checksum failure: 0x%02x != 0x%02x\n"

L_.str.8:                               ## @.str.8
	.asciz	"module %.*s %.*s rev %.*s sn %.*s dc %.*s\n"

L_.str.9:                               ## @.str.9
	.asciz	"module is not supported - phys id 0x%02x 0x%02x\n"

	.comm	_SFP_DIAGMON_ADDRMODE,4,2       ## @SFP_DIAGMON_ADDRMODE
L_.str.10:                              ## @.str.10
	.asciz	"module address swap to access page 0xA2 is not supported.\n"

	.no_dead_strip	_sfp_sm_mod_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sfp_sm_mod_probe
_sfp_sm_mod_probe:                      ; @sfp_sm_mod_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
	add	x3, sp, #16
	mov	w1, #0
	mov	w2, #0
	mov	w4, #80
	bl	_sfp_read
	mov	x2, x0
	tbnz	w0, #31, LBB0_6
; %bb.1:
	cmp	w2, #80
	b.ne	LBB0_7
; %bb.2:
	add	x8, sp, #16
	add	x21, x8, #40
	ldr	w0, [sp, #84]
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #16
	bl	_memcmp
	mov	x20, x0
	mov	x0, x21
	mov	w1, #39
	bl	_sfp_check
	ldr	w8, [sp, #92]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.3:
	add	x0, sp, #16
	mov	w1, #39
	bl	_sfp_check
	ldr	w8, [sp, #48]
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.4:
	mov	x2, x0
	cbz	w20, LBB0_13
; %bb.5:
	ldr	w0, [x19, #84]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.7@PAGE
Lloh3:
	add	x1, x1, l_.str.7@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_err
Lloh4:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x5, sp, #16
	mov	w3, #16
	mov	w4, #1
	mov	w6, #80
	mov	w7, #1
	bl	_print_hex_dump
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	b	LBB0_14
LBB0_6:
	ldr	w0, [x19, #84]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19, #84]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	bl	_dev_err
Lloh16:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_22
LBB0_9:
	mov	x2, x0
	ldr	w0, [x19, #84]
	cbz	w20, LBB0_11
; %bb.10:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_err
Lloh20:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x5, sp, #16
	mov	w3, #16
	mov	w4, #1
	mov	w6, #80
	mov	w7, #1
	bl	_print_hex_dump
	b	LBB0_21
LBB0_11:
	stp	x2, x8, [sp]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
	add	x0, sp, #16
	mov	w1, #39
	bl	_sfp_check
	ldr	w8, [sp, #48]
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.12:
	mov	x2, x0
LBB0_13:
	ldr	w0, [x19, #84]
	stp	x2, x8, [sp]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_warn
LBB0_14:
	ldp	q0, q1, [sp, #32]
	ldr	q2, [sp, #64]
	stp	q1, q2, [x19, #32]
	ldr	q1, [sp, #80]
	str	q1, [x19, #64]
	ldr	q1, [sp, #16]
	stp	q1, q0, [x19]
	ldr	w0, [x19, #84]
	ldp	w5, w3, [sp, #80]
	ldr	w7, [sp, #76]
	ldp	w9, w8, [sp, #28]
	mov	w10, #4
	stp	w10, w9, [sp, #8]
	stp	w10, w8, [sp]
Lloh32:
	adrp	x1, l_.str.8@PAGE
Lloh33:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w2, #4
	mov	w4, #4
	mov	w6, #4
	bl	_dev_info
	ldr	x8, [x19, #88]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_20
; %bb.15:
	ldr	w8, [x19]
Lloh34:
	adrp	x9, _SFP_DIAGMON_ADDRMODE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _SFP_DIAGMON_ADDRMODE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
	ldr	w0, [x19, #84]
Lloh37:
	adrp	x1, l_.str.10@PAGE
Lloh38:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_dev_warn
LBB0_17:
	mov	x0, x19
	bl	_sfp_hwmon_insert
	tbnz	w0, #31, LBB0_23
; %bb.18:
	ldr	w0, [x19, #80]
	mov	x1, x19
	bl	_sfp_module_insert
	tbnz	w0, #31, LBB0_23
; %bb.19:
	mov	x0, x19
	bl	_sfp_sm_mod_hpower
	b	LBB0_23
LBB0_20:
	ldr	w0, [x19, #84]
	ldp	w8, w2, [x19, #44]
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str.9@PAGE
Lloh40:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_dev_err
LBB0_21:
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_23:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read EEPROM: %d\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"EEPROM short read: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"COTSWORKS       "

l_.str.3:                               ; @.str.3
	.asciz	"EEPROM base structure checksum failure (0x%02x != 0x%02x)\n"

l_.str.4:                               ; @.str.4
	.asciz	"EEPROM base structure checksum failure: 0x%02x != 0x%02x\n"

	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.5:                               ; @.str.5
	.asciz	"sfp EE: "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ; @DUMP_PREFIX_OFFSET
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.6:                               ; @.str.6
	.asciz	"EEPROM extended structure checksum failure (0x%02x != 0x%02x)\n"

l_.str.7:                               ; @.str.7
	.asciz	"EEPROM extended structure checksum failure: 0x%02x != 0x%02x\n"

l_.str.8:                               ; @.str.8
	.asciz	"module %.*s %.*s rev %.*s sn %.*s dc %.*s\n"

l_.str.9:                               ; @.str.9
	.asciz	"module is not supported - phys id 0x%02x 0x%02x\n"

	.comm	_SFP_DIAGMON_ADDRMODE,4,2       ; @SFP_DIAGMON_ADDRMODE
l_.str.10:                              ; @.str.10
	.asciz	"module address swap to access page 0xA2 is not supported.\n"

	.no_dead_strip	_sfp_sm_mod_probe
.subsections_via_symbols
