	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_ccn_pmu_get_cmp_mask
_arm_ccn_pmu_get_cmp_mask:              ## @arm_ccn_pmu_get_cmp_mask
	.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	%rsi, %r15
	movq	%rdi, %r14
	movl	$1, %ebx
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movb	(%r15), %al
	testb	%al, %al
	je	LBB0_4
## %bb.2:
	movsbl	%al, %edi
	callq	_isxdigit
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	cmpb	$0, 1(%r15)
	sete	%bl
LBB0_4:
	movl	%ebx, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movsbl	(%r15), %edi
	callq	_isdigit
	movq	%rax, %rcx
	movsbl	(%r15), %eax
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	addl	$-48, %eax
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %edi
	callq	_tolower
	addl	$-87, %eax
LBB0_10:
	cltq
	movsbl	1(%r15), %ecx
	cmpl	$104, %ecx
	je	LBB0_13
## %bb.11:
	cmpl	$108, %ecx
	jne	LBB0_5
## %bb.12:
	movq	(%r14), %rcx
	leaq	(%rcx,%rax,8), %rax
	addq	$4, %rax
	jmp	LBB0_6
LBB0_13:
	shlq	$3, %rax
	addq	(%r14), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_arm_ccn_pmu_get_cmp_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_ccn_pmu_get_cmp_mask
_arm_ccn_pmu_get_cmp_mask:              ; @arm_ccn_pmu_get_cmp_mask
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_4
; %bb.1:
	ldrb	w8, [x20]
	cbz	w8, LBB0_4
; %bb.2:
	sxtb	w0, w8
	bl	_isxdigit
	cbz	w0, LBB0_4
; %bb.3:
	ldrb	w8, [x20, #1]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_5
	b	LBB0_7
LBB0_4:
	mov	w0, #1
	bl	_WARN_ON
	cbz	x0, LBB0_7
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldrsb	w0, [x20]
	bl	_isdigit
	mov	x8, x0
	ldrsb	w0, [x20]
	cbz	x8, LBB0_9
; %bb.8:
	sub	w8, w0, #48
	b	LBB0_10
LBB0_9:
	bl	_tolower
	sub	w8, w0, #87
LBB0_10:
	sxtw	x8, w8
	ldrsb	w9, [x20, #1]
	cmp	w9, #104
	b.eq	LBB0_13
; %bb.11:
	cmp	w9, #108
	b.ne	LBB0_5
; %bb.12:
	ldr	x9, [x19]
	add	x8, x9, x8, lsl #3
	add	x0, x8, #4
	b	LBB0_6
LBB0_13:
	ldr	x9, [x19]
	add	x0, x9, x8, lsl #3
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_arm_ccn_pmu_get_cmp_mask
.subsections_via_symbols
