	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addr_context_store
_addr_context_store:                    ## @addr_context_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	(%r14), %eax
	movl	4(%r14), %ecx
	cmpl	$1, %eax
	jg	LBB0_4
## %bb.3:
	cmpl	$1, %ecx
	jle	LBB0_1
LBB0_4:
	cmpl	%ecx, %eax
	cmovgl	%eax, %ecx
	movslq	%ecx, %rax
	cmpq	%rax, -48(%rbp)
	jae	LBB0_1
## %bb.5:
	movq	%r14, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	16(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$4, %edi
	callq	_BIT
	movl	%eax, %r13d
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r13d, %ebx
	movl	$6, %edi
	callq	_BIT
	orl	%ebx, %eax
	notl	%eax
	movq	24(%r14), %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	andl	(%rcx,%rsi,4), %eax
	movl	-48(%rbp), %edx
	shll	$4, %edx
	orl	%eax, %edx
	movl	%edx, (%rcx,%rsi,4)
	movq	%r15, %rdi
	callq	_spin_unlock
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
LBB0_6:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_addr_context_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addr_context_store
_addr_context_store:                    ; @addr_context_store
	.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, x3
	mov	x21, x2
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #16
	bl	_kstrtoul
	cbnz	x0, LBB0_4
; %bb.1:
	ldp	w8, w9, [x20]
	cmp	w8, #1
	ccmp	w9, #1, #0, le
	b.le	LBB0_4
; %bb.2:
	ldr	x10, [sp, #8]
	cmp	w8, w9
	csel	w8, w8, w9, gt
	cmp	x10, w8, sxtw
	b.hs	LBB0_4
; %bb.3:
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock
	ldr	x23, [x20, #16]
	mov	w0, #4
	bl	_BIT
	mov	x22, x0
	mov	w0, #5
	bl	_BIT
	orr	w22, w0, w22
	mov	w0, #6
	bl	_BIT
	ldr	x8, [x20, #24]
	lsl	x9, x23, #2
	ldr	w10, [x8, x9]
	orr	w11, w22, w0
	bic	w10, w10, w11
	ldr	w11, [sp, #8]
	orr	w10, w10, w11, lsl #4
	str	w10, [x8, x9]
	mov	x0, x21
	bl	_spin_unlock
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_5:
	mov	x0, x19
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_addr_context_store
.subsections_via_symbols
