	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qc_setscanmode
_qc_setscanmode:                        ## @qc_setscanmode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movl	4(%rdi), %edx
	cmpl	$1, %edx
	je	LBB0_1
## %bb.2:
	cmpl	$4, %edx
	je	LBB0_5
## %bb.3:
	movl	%eax, %ecx
	cmpl	$2, %edx
	jne	LBB0_7
## %bb.4:
	movl	$4, %ecx
	jmp	LBB0_6
LBB0_1:
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_5:
	movl	$8, %ecx
LBB0_6:
	movl	%ecx, (%rdi)
LBB0_7:
	cmpl	$6, 8(%rdi)
	jne	LBB0_9
## %bb.8:
	addl	$2, %ecx
	movl	%ecx, (%rdi)
LBB0_9:
	movq	_QC_MODE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	12(%rdi), %edx
	cmpl	$130, %edx
	jne	LBB0_11
## %bb.10:
	incl	%ecx
	movl	%ecx, (%rdi)
LBB0_11:
	cmpl	%eax, %ecx
	je	LBB0_13
## %bb.12:
	movq	_QC_PARAM_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rdi)
LBB0_13:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QC_MODE_MASK,4,2               ## @QC_MODE_MASK
	.comm	_QC_PARAM_CHANGE,4,2            ## @QC_PARAM_CHANGE
	.no_dead_strip	_qc_setscanmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qc_setscanmode
_qc_setscanmode:                        ; @qc_setscanmode
	.cfi_startproc
; %bb.0:
	ldp	w8, w10, [x0]
	cmp	w10, #1
	b.eq	LBB0_4
; %bb.1:
	cmp	w10, #4
	b.eq	LBB0_5
; %bb.2:
	mov	x9, x8
	cmp	w10, #2
	b.ne	LBB0_7
; %bb.3:
	mov	w9, #4
	b	LBB0_6
LBB0_4:
	mov	w9, #0
	b	LBB0_6
LBB0_5:
	mov	w9, #8
LBB0_6:
	str	w9, [x0]
LBB0_7:
	ldr	w10, [x0, #8]
	cmp	w10, #6
	b.ne	LBB0_9
; %bb.8:
	add	w9, w9, #2
	str	w9, [x0]
LBB0_9:
	ldr	w10, [x0, #12]
Lloh0:
	adrp	x11, _QC_MODE_MASK@GOTPAGE
Lloh1:
	ldr	x11, [x11, _QC_MODE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	and	w10, w11, w10
	cmp	w10, #130
	b.eq	LBB0_12
; %bb.10:
	cmp	w9, w8
	b.ne	LBB0_13
LBB0_11:
	mov	w0, #0
	ret
LBB0_12:
	add	w9, w9, #1
	str	w9, [x0]
	cmp	w9, w8
	b.eq	LBB0_11
LBB0_13:
Lloh3:
	adrp	x8, _QC_PARAM_CHANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QC_PARAM_CHANGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x0, #16]
	orr	w8, w9, w8
	str	w8, [x0, #16]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QC_MODE_MASK,4,2               ; @QC_MODE_MASK
	.comm	_QC_PARAM_CHANGE,4,2            ; @QC_PARAM_CHANGE
	.no_dead_strip	_qc_setscanmode
.subsections_via_symbols
