	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sfp_check_state
_sfp_check_state:                       ## @sfp_check_state
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	addq	$4, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_sfp_get_state
	movl	(%r14), %edi
	movl	%edi, %ecx
	movq	_SFP_F_PRESENT@GOTPCREL(%rip), %rsi
	movq	_SFP_F_LOS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rsi), %edx
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%eax, %ecx
	movq	_SFP_F_TX_FAULT@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	andl	%ecx, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_GPIO_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_GPIO_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %r12d
	movl	8(%r14), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_gpio_of_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %r13d
	movl	%ebx, %edi
	callq	_BIT
	xorl	%r15d, %r15d
	testl	%r12d, %eax
	setne	%r15b
	movl	%ebx, %edi
	callq	_BIT
	xorl	%r8d, %r8d
	testl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	setne	%r8b
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	callq	_dev_dbg
	jmp	LBB0_4
LBB0_5:
	movl	(%r14), %edi
LBB0_6:
	movq	_SFP_F_TX_DISABLE@GOTPCREL(%rip), %rcx
	movq	_SFP_F_RATE_SELECT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	andl	%edi, %ebx
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, (%r14)
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	_SFP_F_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_11
## %bb.7:
	testl	%eax, %ebx
	jne	LBB0_8
## %bb.9:
	movq	_SFP_E_REMOVE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_SFP_E_INSERT@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sfp_sm_event
LBB0_11:
	movq	_SFP_F_TX_FAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_16
## %bb.12:
	testl	%ebx, %eax
	jne	LBB0_13
## %bb.14:
	movq	_SFP_E_TX_CLEAR@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_SFP_E_TX_FAULT@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sfp_sm_event
LBB0_16:
	movq	_SFP_F_LOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_21
## %bb.17:
	testl	%ebx, %eax
	jne	LBB0_18
## %bb.19:
	movq	_SFP_E_LOS_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_18:
	movq	_SFP_E_LOS_HIGH@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sfp_sm_event
LBB0_21:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SFP_F_PRESENT,4,2              ## @SFP_F_PRESENT
	.comm	_SFP_F_LOS,4,2                  ## @SFP_F_LOS
	.comm	_SFP_F_TX_FAULT,4,2             ## @SFP_F_TX_FAULT
	.comm	_GPIO_MAX,4,2                   ## @GPIO_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %u -> %u\n"

	.comm	_gpio_of_names,8,3              ## @gpio_of_names
	.comm	_SFP_F_TX_DISABLE,4,2           ## @SFP_F_TX_DISABLE
	.comm	_SFP_F_RATE_SELECT,4,2          ## @SFP_F_RATE_SELECT
	.comm	_SFP_E_INSERT,4,2               ## @SFP_E_INSERT
	.comm	_SFP_E_REMOVE,4,2               ## @SFP_E_REMOVE
	.comm	_SFP_E_TX_FAULT,4,2             ## @SFP_E_TX_FAULT
	.comm	_SFP_E_TX_CLEAR,4,2             ## @SFP_E_TX_CLEAR
	.comm	_SFP_E_LOS_HIGH,4,2             ## @SFP_E_LOS_HIGH
	.comm	_SFP_E_LOS_LOW,4,2              ## @SFP_E_LOS_LOW
	.no_dead_strip	_sfp_check_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sfp_check_state
_sfp_check_state:                       ; @sfp_check_state
	.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	x20, x0
	add	x0, x0, #4
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_mutex_lock
	mov	x0, x20
	bl	_sfp_get_state
	mov	x21, x0
	ldr	w8, [x20]
	eor	w9, w8, w0
Lloh0:
	adrp	x10, _SFP_F_PRESENT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SFP_F_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x22, _SFP_F_LOS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SFP_F_LOS@GOTPAGEOFF]
	ldr	w11, [x22]
	orr	w10, w11, w10
Lloh5:
	adrp	x23, _SFP_F_TX_FAULT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SFP_F_TX_FAULT@GOTPAGEOFF]
	ldr	w11, [x23]
	orr	w10, w10, w11
	and	w28, w10, w9
Lloh7:
	adrp	x27, _GPIO_MAX@GOTPAGE
Lloh8:
	ldr	x27, [x27, _GPIO_MAX@GOTPAGEOFF]
	ldr	w9, [x27]
	cbz	w9, LBB0_6
; %bb.1:
	mov	x22, #0
Lloh9:
	adrp	x19, _gpio_of_names@GOTPAGE
Lloh10:
	ldr	x19, [x19, _gpio_of_names@GOTPAGEOFF]
Lloh11:
	adrp	x23, l_.str@PAGE
Lloh12:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldr	w8, [x27]
	cmp	x22, x8
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_BIT
	tst	w0, w28
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w24, [x20, #8]
	ldr	x8, [x19]
	ldr	w25, [x8, x22, lsl #2]
	ldr	w26, [x20]
	mov	x0, x22
	bl	_BIT
	tst	w0, w26
	cset	w26, ne
	mov	x0, x22
	bl	_BIT
	tst	w0, w21
	cset	w4, ne
	mov	x0, x24
	mov	x1, x23
	mov	x2, x25
	mov	x3, x26
	bl	_dev_dbg
	b	LBB0_2
LBB0_5:
	ldr	w8, [x20]
Lloh13:
	adrp	x22, _SFP_F_LOS@GOTPAGE
Lloh14:
	ldr	x22, [x22, _SFP_F_LOS@GOTPAGEOFF]
Lloh15:
	adrp	x23, _SFP_F_TX_FAULT@GOTPAGE
Lloh16:
	ldr	x23, [x23, _SFP_F_TX_FAULT@GOTPAGEOFF]
LBB0_6:
Lloh17:
	adrp	x9, _SFP_F_TX_DISABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SFP_F_TX_DISABLE@GOTPAGEOFF]
Lloh19:
	adrp	x10, _SFP_F_RATE_SELECT@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SFP_F_RATE_SELECT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w8, w9, w8
	orr	w19, w8, w21
	str	w19, [x20]
	bl	_rtnl_lock
Lloh23:
	adrp	x8, _SFP_F_PRESENT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SFP_F_PRESENT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w28
	b.eq	LBB0_8
; %bb.7:
Lloh26:
	adrp	x9, _SFP_E_INSERT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SFP_E_INSERT@GOTPAGEOFF]
Lloh28:
	adrp	x10, _SFP_E_REMOVE@GOTPAGE
Lloh29:
	ldr	x10, [x10, _SFP_E_REMOVE@GOTPAGEOFF]
	tst	w19, w8
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sfp_sm_event
LBB0_8:
	ldr	w8, [x23]
	tst	w8, w28
	b.eq	LBB0_10
; %bb.9:
Lloh30:
	adrp	x9, _SFP_E_TX_FAULT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SFP_E_TX_FAULT@GOTPAGEOFF]
Lloh32:
	adrp	x10, _SFP_E_TX_CLEAR@GOTPAGE
Lloh33:
	ldr	x10, [x10, _SFP_E_TX_CLEAR@GOTPAGEOFF]
	tst	w8, w19
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sfp_sm_event
LBB0_10:
	ldr	w8, [x22]
	tst	w8, w28
	b.eq	LBB0_12
; %bb.11:
Lloh34:
	adrp	x9, _SFP_E_LOS_HIGH@GOTPAGE
Lloh35:
	ldr	x9, [x9, _SFP_E_LOS_HIGH@GOTPAGEOFF]
Lloh36:
	adrp	x10, _SFP_E_LOS_LOW@GOTPAGE
Lloh37:
	ldr	x10, [x10, _SFP_E_LOS_LOW@GOTPAGEOFF]
	tst	w8, w19
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sfp_sm_event
LBB0_12:
	bl	_rtnl_unlock
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	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
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_SFP_F_PRESENT,4,2              ; @SFP_F_PRESENT
	.comm	_SFP_F_LOS,4,2                  ; @SFP_F_LOS
	.comm	_SFP_F_TX_FAULT,4,2             ; @SFP_F_TX_FAULT
	.comm	_GPIO_MAX,4,2                   ; @GPIO_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %u -> %u\n"

	.comm	_gpio_of_names,8,3              ; @gpio_of_names
	.comm	_SFP_F_TX_DISABLE,4,2           ; @SFP_F_TX_DISABLE
	.comm	_SFP_F_RATE_SELECT,4,2          ; @SFP_F_RATE_SELECT
	.comm	_SFP_E_INSERT,4,2               ; @SFP_E_INSERT
	.comm	_SFP_E_REMOVE,4,2               ; @SFP_E_REMOVE
	.comm	_SFP_E_TX_FAULT,4,2             ; @SFP_E_TX_FAULT
	.comm	_SFP_E_TX_CLEAR,4,2             ; @SFP_E_TX_CLEAR
	.comm	_SFP_E_LOS_HIGH,4,2             ; @SFP_E_LOS_HIGH
	.comm	_SFP_E_LOS_LOW,4,2              ; @SFP_E_LOS_LOW
	.no_dead_strip	_sfp_check_state
.subsections_via_symbols
