	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_enabled
_store_enabled:                         ## @store_enabled
	.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	%rdx, %rbx
	movq	%rdi, %r12
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ipath_parse_ushort
	movq	%rax, %r15
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_IPATH_DISABLED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	andl	(%r14), %eax
	cmpq	$0, -40(%rbp)
	je	LBB0_7
## %bb.3:
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movl	16(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ipath_init_chip
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r15
	movl	16(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ipath_dev_err
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ipath_dev_err
	jmp	LBB0_9
LBB0_7:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	16(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	movq	%r14, %rdi
	callq	_ipath_shutdown_device
	movl	(%rbx), %eax
	orl	%eax, (%r14)
	movq	_IPATH_STATUS_ADMIN_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_9
LBB0_6:
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, (%r14)
	movq	_IPATH_STATUS_ADMIN_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	8(%r14), %rcx
	andl	%eax, (%rcx)
	xorl	%r15d, %r15d
LBB0_9:
	movq	%r15, %rax
	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	"attempt to use non-numeric on enable\n"

	.comm	_IPATH_DISABLED,4,2             ## @IPATH_DISABLED
L_.str.1:                               ## @.str.1
	.asciz	"Enabling unit %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to enable unit %d\n"

	.comm	_IPATH_STATUS_ADMIN_DISABLED,4,2 ## @IPATH_STATUS_ADMIN_DISABLED
L_.str.3:                               ## @.str.3
	.asciz	"Disabling unit %d\n"

	.no_dead_strip	_store_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_enabled
_store_enabled:                         ; @store_enabled
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_ipath_parse_ushort
	mov	x19, x0
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	x9, [sp, #8]
	ldr	w8, [x20]
Lloh0:
	adrp	x22, _IPATH_DISABLED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IPATH_DISABLED@GOTPAGEOFF]
	ldr	w10, [x22]
	and	w8, w10, w8
	cbz	x9, LBB0_7
; %bb.2:
	cbz	w8, LBB0_11
; %bb.3:
	ldr	w2, [x20, #16]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_info
	mov	x0, x20
	mov	w1, #1
	bl	_ipath_init_chip
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.4:
	ldr	w8, [x20, #16]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_ipath_dev_err
	b	LBB0_11
LBB0_7:
	cbnz	w8, LBB0_11
; %bb.8:
	ldr	w2, [x20, #16]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_info
	mov	x0, x20
	bl	_ipath_shutdown_device
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _IPATH_STATUS_ADMIN_DISABLED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IPATH_STATUS_ADMIN_DISABLED@GOTPAGEOFF]
	str	w8, [x20]
Lloh12:
	ldr	w8, [x9]
	ldr	x9, [x20, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	b	LBB0_10
LBB0_9:
	ldr	w8, [x22]
	ldr	w9, [x20]
	bic	w8, w9, w8
Lloh13:
	adrp	x9, _IPATH_STATUS_ADMIN_DISABLED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IPATH_STATUS_ADMIN_DISABLED@GOTPAGEOFF]
	str	w8, [x20]
Lloh15:
	ldr	w8, [x9]
	ldr	x9, [x20, #8]
	ldr	w10, [x9]
	bic	w8, w10, w8
LBB0_10:
	str	w8, [x9]
LBB0_11:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempt to use non-numeric on enable\n"

	.comm	_IPATH_DISABLED,4,2             ; @IPATH_DISABLED
l_.str.1:                               ; @.str.1
	.asciz	"Enabling unit %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to enable unit %d\n"

	.comm	_IPATH_STATUS_ADMIN_DISABLED,4,2 ; @IPATH_STATUS_ADMIN_DISABLED
l_.str.3:                               ; @.str.3
	.asciz	"Disabling unit %d\n"

	.no_dead_strip	_store_enabled
.subsections_via_symbols
