	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_cidmode
_set_cidmode:                           ## @set_cidmode
	.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	%rcx, %r13
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_simple_strtol
	movq	%rax, %r12
	movq	-48(%rbp), %rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rcx)
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rcx), %rbx
	movq	%rbx, -48(%rbp)
	movsbl	(%rcx), %edi
	callq	_isspace
	movq	%rbx, %rcx
	testl	%eax, %eax
	jne	LBB0_1
	jmp	LBB0_3
LBB0_5:
	cmpq	$2, %r12
	jb	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r13d, %r13d
	subq	(%rax), %r13
LBB0_11:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	movl	$1, (%r14)
	movq	%r14, %rsi
	addq	$12, %rsi
	movq	_EV_PROC_CIDMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movq	%r12, %r8
	xorl	%r9d, %r9d
	callq	_gigaset_add_event
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_gig_dbg
	movq	%r14, %rdi
	callq	_gigaset_schedule_event
	movl	8(%r14), %edi
	xorl	%esi, %esi
	cmpl	$0, (%r14)
	sete	%sil
	callq	_wait_event
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_11
LBB0_9:
	movl	$0, (%r14)
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ERESTARTSYS,8,3                ## @ERESTARTSYS
	.comm	_EV_PROC_CIDMODE,4,2            ## @EV_PROC_CIDMODE
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_DEBUG_CMD,4,2                  ## @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scheduling PROC_CIDMODE"

	.no_dead_strip	_set_cidmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_cidmode
_set_cidmode:                           ; @set_cidmode
	.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	x1, sp, #8
	mov	x0, x21
	mov	w2, #0
	bl	_simple_strtol
	mov	x22, x0
	ldr	x8, [sp, #8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8]
	cbz	w9, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x21, x8, #1
	str	x21, [sp, #8]
	ldrsb	w0, [x8]
	bl	_isspace
	mov	x8, x21
	cbnz	w0, LBB0_1
	b	LBB0_4
LBB0_3:
	cmp	x22, #2
	b.lo	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	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:
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_9
; %bb.8:
Lloh2:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	mov	w8, #1
	mov	x1, x20
	str	w8, [x1], #12
Lloh4:
	adrp	x8, _EV_PROC_CIDMODE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EV_PROC_CIDMODE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, #0
	mov	x4, x22
	mov	x5, #0
	bl	_gigaset_add_event
	cbz	w0, LBB0_11
; %bb.10:
Lloh7:
	adrp	x8, _DEBUG_CMD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DEBUG_CMD@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_gig_dbg
	mov	x0, x20
	bl	_gigaset_schedule_event
	ldr	w0, [x20, #8]
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w1, eq
	bl	_wait_event
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_6
LBB0_11:
	str	wzr, [x20]
	mov	x0, x21
	bl	_mutex_unlock
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ERESTARTSYS,8,3                ; @ERESTARTSYS
	.comm	_EV_PROC_CIDMODE,4,2            ; @EV_PROC_CIDMODE
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_DEBUG_CMD,4,2                  ; @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scheduling PROC_CIDMODE"

	.no_dead_strip	_set_cidmode
.subsections_via_symbols
