	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_get_host_state_generic   ## -- Begin function fm10k_get_host_state_generic
	.p2align	4, 0x90
_fm10k_get_host_state_generic:          ## @fm10k_get_host_state_generic
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	32(%rdi), %r15
	xorl	%edi, %edi
	callq	_FM10K_TXDCTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*48(%rbx)
	cmpl	$-1, %r12d
	je	LBB0_3
## %bb.1:
	movq	_FM10K_TXDCTL_ENABLE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %ecx
	jmp	LBB0_4
LBB0_3:
	movl	$1, (%rbx)
	movl	$1, %ecx
LBB0_4:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.5:
	cmpl	$-1, %r12d
	je	LBB0_15
## %bb.6:
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.7:
	movq	_FM10K_TXDCTL_ENABLE@GOTPCREL(%rip), %rdx
	testl	%r12d, (%rdx)
	je	LBB0_8
LBB0_9:
	cmpl	$0, 40(%rbx)
	je	LBB0_8
## %bb.10:
	movq	(%r15), %rdx
	movq	_FM10K_STATE_OPEN@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_15
## %bb.11:
	movq	8(%rbx), %rdx
	movq	_FM10K_DGLORTMAP_NONE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_14
## %bb.12:
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.13:
	movq	%rbx, %rdi
	callq	*%rdx
	movl	(%rbx), %ecx
	jmp	LBB0_15
LBB0_8:
	movq	_FM10K_ERR_RESET_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	xorl	%edx, %edx
	testl	%ecx, %ecx
	sete	%dl
	movl	%edx, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	$0, (%rbx)
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_TXDCTL_ENABLE,4,2        ## @FM10K_TXDCTL_ENABLE
	.comm	_FM10K_ERR_RESET_REQUESTED,4,2  ## @FM10K_ERR_RESET_REQUESTED
	.comm	_FM10K_STATE_OPEN,8,3           ## @FM10K_STATE_OPEN
	.comm	_FM10K_DGLORTMAP_NONE,8,3       ## @FM10K_DGLORTMAP_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_get_host_state_generic   ; -- Begin function fm10k_get_host_state_generic
	.p2align	2
_fm10k_get_host_state_generic:          ; @fm10k_get_host_state_generic
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	add	x21, x0, #32
	mov	w0, #0
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x20
	bl	_fm10k_read_reg
	mov	x22, x0
	ldr	x8, [x20, #48]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	cmn	w22, #1
	b.eq	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _FM10K_TXDCTL_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM10K_TXDCTL_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x20]
	mov	w0, #0
	cbnz	w8, LBB0_4
	b	LBB0_15
LBB0_3:
	mov	w8, #1
	str	w8, [x20]
	mov	w0, #0
	cbz	w8, LBB0_15
LBB0_4:
	cmn	w22, #1
	b.eq	LBB0_15
; %bb.5:
	ldr	x9, [x20, #24]
	cbz	x9, LBB0_7
; %bb.6:
Lloh3:
	adrp	x9, _FM10K_TXDCTL_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FM10K_TXDCTL_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w22
	b.eq	LBB0_12
LBB0_7:
	ldr	w9, [x20, #40]
	cbz	w9, LBB0_12
; %bb.8:
	ldr	x9, [x21]
Lloh6:
	adrp	x10, _FM10K_STATE_OPEN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FM10K_STATE_OPEN@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.9:
	ldr	x9, [x20, #8]
Lloh9:
	adrp	x10, _FM10K_DGLORTMAP_NONE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FM10K_DGLORTMAP_NONE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.10:
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_13
; %bb.11:
	mov	x0, x20
	blr	x9
	ldr	w8, [x20]
	b	LBB0_15
LBB0_12:
Lloh12:
	adrp	x9, _FM10K_ERR_RESET_REQUESTED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FM10K_ERR_RESET_REQUESTED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	b	LBB0_15
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	mov	w8, #0
	mov	w0, #0
	str	wzr, [x20]
LBB0_15:
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_TXDCTL_ENABLE,4,2        ; @FM10K_TXDCTL_ENABLE
	.comm	_FM10K_ERR_RESET_REQUESTED,4,2  ; @FM10K_ERR_RESET_REQUESTED
	.comm	_FM10K_STATE_OPEN,8,3           ; @FM10K_STATE_OPEN
	.comm	_FM10K_DGLORTMAP_NONE,8,3       ; @FM10K_DGLORTMAP_NONE
.subsections_via_symbols
