	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_reset
_store_reset:                           ## @store_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	cmpq	$5, %rbx
	jb	LBB0_2
## %bb.1:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$5, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_IPATH_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	4(%r15), %edx
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	testl	%eax, %eax
	cmovsl	%eax, %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%edx, %edi
	callq	_ipath_reset_device
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPATH_DISABLED,4,2             ## @IPATH_DISABLED
L_.str.1:                               ## @.str.1
	.asciz	"Unit %d is disabled, can't reset\n"

	.no_dead_strip	_store_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_reset
_store_reset:                           ; @store_reset
	.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, x3
	mov	x22, x2
	mov	x20, x0
	bl	_dev_get_drvdata
	cmp	x19, #5
	b.lo	LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	w2, #5
	bl	_memcmp
	cbnz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _IPATH_DISABLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPATH_DISABLED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldp	w9, w2, [x21]
	tst	w8, w9
	b.eq	LBB0_6
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
LBB0_4:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	cmp	w0, #0
	csel	w0, w0, w19, lt
	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
LBB0_6:
	mov	x0, x2
	bl	_ipath_reset_device
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPATH_DISABLED,4,2             ; @IPATH_DISABLED
l_.str.1:                               ; @.str.1
	.asciz	"Unit %d is disabled, can't reset\n"

	.no_dead_strip	_store_reset
.subsections_via_symbols
