	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wimax_reset                    ## -- Begin function wimax_reset
	.p2align	4, 0x90
_wimax_reset:                           ## @wimax_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	%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, %rbx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	callq	_wimax_dev_to_dev
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_might_sleep
	leaq	L_.str(%rip), %rdx
	movl	$3, %edi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	_d_fnstart
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	16(%rbx), %edi
	callq	_dev_hold
	movl	(%rbx), %r13d
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_WIMAX_ST_DOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jb	LBB0_2
## %bb.1:
	leaq	20(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_2:
	movl	16(%rbx), %edi
	callq	_dev_put
	leaq	L_.str.1(%rip), %rdx
	movl	$3, %edi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	movl	%r14d, %r8d
	callq	_d_fnend
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(wimax_dev %p)\n"

	.comm	_WIMAX_ST_DOWN,4,2              ## @WIMAX_ST_DOWN
L_.str.1:                               ## @.str.1
	.asciz	"(wimax_dev %p) = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wimax_reset                    ; -- Begin function wimax_reset
	.p2align	2
_wimax_reset:                           ; @wimax_reset
	.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	x19, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_wimax_dev_to_dev
	mov	x20, x0
	bl	_might_sleep
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #3
	mov	x1, x20
	mov	x3, x19
	bl	_d_fnstart
	add	x21, x19, #24
	mov	x0, x21
	bl	_mutex_lock
	ldr	w0, [x19, #16]
	bl	_dev_hold
	ldr	w23, [x19]
	mov	x0, x21
	bl	_mutex_unlock
Lloh5:
	adrp	x8, _WIMAX_ST_DOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WIMAX_ST_DOWN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w23, w8
	b.hs	LBB0_2
; %bb.1:
	neg	w21, w22
	b	LBB0_3
LBB0_2:
	add	x22, x19, #20
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	mov	x0, x22
	bl	_mutex_unlock
LBB0_3:
	ldr	w0, [x19, #16]
	bl	_dev_put
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #3
	mov	x1, x20
	mov	x3, x19
	mov	x4, x21
	bl	_d_fnend
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(wimax_dev %p)\n"

	.comm	_WIMAX_ST_DOWN,4,2              ; @WIMAX_ST_DOWN
l_.str.1:                               ; @.str.1
	.asciz	"(wimax_dev %p) = %d\n"

.subsections_via_symbols
