	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2400m_op_reset
_i2400m_op_reset:                       ## @i2400m_op_reset
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_wimax_dev_to_i2400m
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_i2400m_dev
	movq	%rax, %r14
	movl	$0, -40(%rbp)
	callq	_COMPLETION_INITIALIZER_ONSTACK
	movl	%eax, -36(%rbp)
	leaq	L_.str(%rip), %rdx
	movl	$4, %edi
	movq	%r14, %rsi
	movq	%r15, %rcx
	callq	_d_fnstart
	movq	%r12, %rdi
	callq	_mutex_lock
	leaq	-40(%rbp), %rax
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_I2400M_RT_WARM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2400m_reset
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	-36(%rbp), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	jle	LBB0_6
## %bb.5:
	movl	-40(%rbp), %ebx
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_3:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	$0, 8(%r12)
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_7:
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %edi
	movq	%r14, %rsi
	movq	%r15, %rcx
	movl	%ebx, %r8d
	callq	_d_fnend
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(wimax_dev %p)\n"

	.comm	_I2400M_RT_WARM,4,2             ## @I2400M_RT_WARM
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"(wimax_dev %p) = %d\n"

	.no_dead_strip	_i2400m_op_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2400m_op_reset
_i2400m_op_reset:                       ; @i2400m_op_reset
	.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
	bl	_wimax_dev_to_i2400m
	mov	x21, x0
	bl	_i2400m_dev
	mov	x20, x0
	str	wzr, [sp, #8]
	add	x23, sp, #8
	bl	_COMPLETION_INITIALIZER_ONSTACK
	str	w0, [sp, #12]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #4
	mov	x1, x20
	mov	x3, x19
	bl	_d_fnstart
	mov	x0, x21
	bl	_mutex_lock
	str	x23, [x21, #8]
	mov	x0, x21
	bl	_mutex_unlock
Lloh2:
	adrp	x8, _I2400M_RT_WARM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2400M_RT_WARM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2400m_reset
	tbnz	w0, #31, LBB0_3
; %bb.1:
	orr	x0, x23, #0x4
Lloh5:
	adrp	x8, _HZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #8]
	cmp	w0, #0
	csel	w22, w8, w0, gt
	b	LBB0_5
LBB0_3:
	mov	x22, x0
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x21
	bl	_mutex_lock
	str	xzr, [x21, #8]
	mov	x0, x21
	bl	_mutex_unlock
LBB0_6:
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #4
	mov	x1, x20
	mov	x3, x19
	mov	x4, x22
	bl	_d_fnend
	mov	x0, x22
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(wimax_dev %p)\n"

	.comm	_I2400M_RT_WARM,4,2             ; @I2400M_RT_WARM
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"(wimax_dev %p) = %d\n"

	.no_dead_strip	_i2400m_op_reset
.subsections_via_symbols
