	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_mbx_disconnect
_fm10k_mbx_disconnect:                  ## @fm10k_mbx_disconnect
	.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	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %ebx
	movl	32(%rsi), %esi
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_FM10K_MBX_DISCONNECT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	_FM10K_STATE_DISCONNECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	_FM10K_MBX_REQ@GOTPCREL(%rip), %rax
	movq	_FM10K_MBX_INTERRUPT_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_fm10k_write_reg
	movq	_FM10K_MBX_POLL_DELAY@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_FM10K_STATE_CLOSED@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	callq	_udelay
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*24(%r15)
	movq	(%r12), %rdi
	subl	%edi, %ebx
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	callq	_fm10k_mbx_connect_reset
	leaq	20(%r15), %rdi
	callq	_fm10k_fifo_drop_all
	movl	16(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fm10k_write_reg                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_MBX_DISCONNECT_TIMEOUT,4,2 ## @FM10K_MBX_DISCONNECT_TIMEOUT
	.comm	_FM10K_STATE_DISCONNECT,8,3     ## @FM10K_STATE_DISCONNECT
	.comm	_FM10K_MBX_REQ,4,2              ## @FM10K_MBX_REQ
	.comm	_FM10K_MBX_INTERRUPT_DISABLE,4,2 ## @FM10K_MBX_INTERRUPT_DISABLE
	.comm	_FM10K_MBX_POLL_DELAY,8,3       ## @FM10K_MBX_POLL_DELAY
	.comm	_FM10K_STATE_CLOSED,8,3         ## @FM10K_STATE_CLOSED
	.no_dead_strip	_fm10k_mbx_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_mbx_disconnect
_fm10k_mbx_disconnect:                  ; @fm10k_mbx_disconnect
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _FM10K_MBX_DISCONNECT_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FM10K_MBX_DISCONNECT_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w21, wzr, w9, eq
Lloh3:
	adrp	x8, _FM10K_STATE_DISCONNECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FM10K_STATE_DISCONNECT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x1, #8]
Lloh6:
	adrp	x8, _FM10K_MBX_REQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FM10K_MBX_REQ@GOTPAGEOFF]
	ldr	w1, [x1, #32]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _FM10K_MBX_INTERRUPT_DISABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FM10K_MBX_INTERRUPT_DISABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_fm10k_write_reg
Lloh12:
	adrp	x22, _FM10K_MBX_POLL_DELAY@GOTPAGE
Lloh13:
	ldr	x22, [x22, _FM10K_MBX_POLL_DELAY@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh14:
	adrp	x23, _FM10K_STATE_CLOSED@GOTPAGE
Lloh15:
	ldr	x23, [x23, _FM10K_STATE_CLOSED@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_udelay
	ldr	x8, [x20, #24]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x0, [x22]
	sub	w21, w21, w0
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_1
LBB0_3:
	mov	x0, x20
	bl	_fm10k_mbx_connect_reset
	add	x0, x20, #20
	bl	_fm10k_fifo_drop_all
	ldr	w1, [x20, #16]
	mov	x0, x19
	mov	w2, #0
	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	_fm10k_write_reg
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_MBX_DISCONNECT_TIMEOUT,4,2 ; @FM10K_MBX_DISCONNECT_TIMEOUT
	.comm	_FM10K_STATE_DISCONNECT,8,3     ; @FM10K_STATE_DISCONNECT
	.comm	_FM10K_MBX_REQ,4,2              ; @FM10K_MBX_REQ
	.comm	_FM10K_MBX_INTERRUPT_DISABLE,4,2 ; @FM10K_MBX_INTERRUPT_DISABLE
	.comm	_FM10K_MBX_POLL_DELAY,8,3       ; @FM10K_MBX_POLL_DELAY
	.comm	_FM10K_STATE_CLOSED,8,3         ; @FM10K_STATE_CLOSED
	.no_dead_strip	_fm10k_mbx_disconnect
.subsections_via_symbols
