	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ef10_get_timer_workarounds
_efx_ef10_get_timer_workarounds:        ## @efx_ef10_get_timer_workarounds
	.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, %r15
	movq	8(%rdi), %r12
	movq	$0, (%r12)
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_efx_mcdi_get_workarounds
	movl	%eax, %r14d
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_8
## %bb.1:
	testl	%r14d, %r14d
	jne	LBB0_9
## %bb.2:
	movl	-44(%rbp), %eax
	movq	_MC_CMD_GET_WORKAROUNDS_OUT_BUG61265@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	$1, 4(%r12)
LBB0_4:
	movq	_MC_CMD_GET_WORKAROUNDS_OUT_BUG35388@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_5
LBB0_7:
	movl	$1, (%r12)
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	_probe@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r15), %edx
	cmpl	$0, (%r12)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_dbg
	movl	(%r13), %esi
	movl	(%r15), %edx
	cmpl	$0, 4(%r12)
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %rbx
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, %r8
	callq	_netif_dbg
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testl	%ecx, -48(%rbp)
	je	LBB0_8
## %bb.6:
	movq	_MC_CMD_WORKAROUND_BUG35388@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_efx_mcdi_set_workaround
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_MC_CMD_GET_WORKAROUNDS_OUT_BUG61265,4,2 ## @MC_CMD_GET_WORKAROUNDS_OUT_BUG61265
	.comm	_MC_CMD_GET_WORKAROUNDS_OUT_BUG35388,4,2 ## @MC_CMD_GET_WORKAROUNDS_OUT_BUG35388
	.comm	_MC_CMD_WORKAROUND_BUG35388,4,2 ## @MC_CMD_WORKAROUND_BUG35388
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"workaround for bug 35388 is %sabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"en"

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

L_.str.3:                               ## @.str.3
	.asciz	"workaround for bug 61265 is %sabled\n"

	.no_dead_strip	_efx_ef10_get_timer_workarounds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ef10_get_timer_workarounds
_efx_ef10_get_timer_workarounds:        ; @efx_ef10_get_timer_workarounds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x21, [x0, #8]
	str	xzr, [x21]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_efx_mcdi_get_workarounds
	mov	w20, #0
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_9
; %bb.1:
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w8, [sp, #8]
Lloh3:
	adrp	x9, _MC_CMD_GET_WORKAROUNDS_OUT_BUG61265@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MC_CMD_GET_WORKAROUNDS_OUT_BUG61265@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w9, #1
	str	w9, [x21, #4]
LBB0_4:
Lloh6:
	adrp	x9, _MC_CMD_GET_WORKAROUNDS_OUT_BUG35388@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MC_CMD_GET_WORKAROUNDS_OUT_BUG35388@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_5:
	mov	w20, #0
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_9
LBB0_6:
	ldr	w8, [sp, #12]
	tst	w8, w9
	b.eq	LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _MC_CMD_WORKAROUND_BUG35388@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MC_CMD_WORKAROUND_BUG35388@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	x3, #0
	bl	_efx_mcdi_set_workaround
	cbz	w0, LBB0_5
LBB0_8:
	mov	w20, #0
LBB0_9:
Lloh12:
	adrp	x22, _probe@GOTPAGE
Lloh13:
	ldr	x22, [x22, _probe@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [x19]
	ldr	w8, [x21]
Lloh14:
	adrp	x23, l_.str.1@PAGE
Lloh15:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh16:
	adrp	x24, l_.str.2@PAGE
Lloh17:
	add	x24, x24, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x4, x24, x23, eq
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	ldr	w1, [x22]
	ldr	w2, [x19]
	ldr	w8, [x21, #4]
	cmp	w8, #0
	csel	x4, x24, x23, eq
Lloh20:
	adrp	x3, l_.str.3@PAGE
Lloh21:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_MC_CMD_GET_WORKAROUNDS_OUT_BUG61265,4,2 ; @MC_CMD_GET_WORKAROUNDS_OUT_BUG61265
	.comm	_MC_CMD_GET_WORKAROUNDS_OUT_BUG35388,4,2 ; @MC_CMD_GET_WORKAROUNDS_OUT_BUG35388
	.comm	_MC_CMD_WORKAROUND_BUG35388,4,2 ; @MC_CMD_WORKAROUND_BUG35388
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"workaround for bug 35388 is %sabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"en"

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

l_.str.3:                               ; @.str.3
	.asciz	"workaround for bug 61265 is %sabled\n"

	.no_dead_strip	_efx_ef10_get_timer_workarounds
.subsections_via_symbols
