	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reload_bitstream_store
_reload_bitstream_store:                ## @reload_bitstream_store
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kstrtoint
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	cmpl	$1, -28(%rbp)
	jne	LBB0_6
## %bb.2:
	movq	(%r14), %rax
	movq	_GENWQE_CARD_UNUSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_GENWQE_CARD_USED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r15d, %r15d
	subq	(%rax), %r15
LBB0_8:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_GENWQE_CARD_RELOAD_BITSTREAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_GENWQE_CARD_UNUSED,8,3         ## @GENWQE_CARD_UNUSED
	.comm	_GENWQE_CARD_USED,8,3           ## @GENWQE_CARD_USED
	.comm	_GENWQE_CARD_RELOAD_BITSTREAM,8,3 ## @GENWQE_CARD_RELOAD_BITSTREAM
	.comm	_EIO,8,3                        ## @EIO
	.no_dead_strip	_reload_bitstream_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reload_bitstream_store
_reload_bitstream_store:                ; @reload_bitstream_store
	.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, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #0
	bl	_kstrtoint
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _GENWQE_CARD_UNUSED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GENWQE_CARD_UNUSED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _GENWQE_CARD_USED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GENWQE_CARD_USED@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _GENWQE_CARD_RELOAD_BITSTREAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GENWQE_CARD_RELOAD_BITSTREAM@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_6:
	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
LBB0_7:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_GENWQE_CARD_UNUSED,8,3         ; @GENWQE_CARD_UNUSED
	.comm	_GENWQE_CARD_USED,8,3           ; @GENWQE_CARD_USED
	.comm	_GENWQE_CARD_RELOAD_BITSTREAM,8,3 ; @GENWQE_CARD_RELOAD_BITSTREAM
	.comm	_EIO,8,3                        ; @EIO
	.no_dead_strip	_reload_bitstream_store
.subsections_via_symbols
