	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_opencl_device_types_filter
_setup_opencl_device_types_filter:      ## @setup_opencl_device_types_filter
	.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	%rdx, %r15
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_hcstrdup
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	leaq	L_.str(%rip), %r13
	leaq	-56(%rbp), %rbx
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_strtok_r
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	leal	-4(%rax), %ecx
	cmpl	$-3, %ecx
	jb	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	btsl	%eax, %r14d
	xorl	%edi, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_strtok_r
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:
	movq	%r12, %rdi
	callq	_hcfree
	jmp	LBB0_7
LBB0_6:
	movq	_CL_DEVICE_TYPE_ALL@GOTPCREL(%rip), %rax
	movq	_CL_DEVICE_TYPE_CPU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	notl	%r14d
	andl	(%rax), %r14d
LBB0_7:
	movl	%r14d, (%r15)
	movl	$1, %eax
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_event_log_error
	movq	%r12, %rdi
	callq	_hcfree
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	","

L_.str.1:                               ## @.str.1
	.asciz	"Invalid OpenCL device-type %d specified."

	.comm	_CL_DEVICE_TYPE_ALL,4,2         ## @CL_DEVICE_TYPE_ALL
	.comm	_CL_DEVICE_TYPE_CPU,4,2         ## @CL_DEVICE_TYPE_CPU
	.no_dead_strip	_setup_opencl_device_types_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_opencl_device_types_filter
_setup_opencl_device_types_filter:      ; @setup_opencl_device_types_filter
	.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, x2
	cbz	x1, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	x0, x1
	bl	_hcstrdup
	cbz	x0, LBB0_9
; %bb.2:
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x1, x22
	bl	_strtok_r
	mov	w23, #0
	mov	w24, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	mov	x2, x0
	sub	w8, w2, #4
	cmn	w8, #3
	b.lo	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w8, w24, w2
	orr	w23, w8, w23
	add	x2, sp, #8
	mov	x0, #0
	mov	x1, x22
	bl	_strtok_r
	cbnz	x0, LBB0_3
; %bb.5:
	mov	x0, x20
	bl	_hcfree
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _CL_DEVICE_TYPE_ALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CL_DEVICE_TYPE_ALL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CL_DEVICE_TYPE_CPU@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CL_DEVICE_TYPE_CPU@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	bic	w23, w8, w9
LBB0_7:
	str	w23, [x19]
	mov	w0, #1
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_event_log_error
	mov	x0, x20
	bl	_hcfree
	mov	w0, #0
LBB0_9:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	","

l_.str.1:                               ; @.str.1
	.asciz	"Invalid OpenCL device-type %d specified."

	.comm	_CL_DEVICE_TYPE_ALL,4,2         ; @CL_DEVICE_TYPE_ALL
	.comm	_CL_DEVICE_TYPE_CPU,4,2         ; @CL_DEVICE_TYPE_CPU
	.no_dead_strip	_setup_opencl_device_types_filter
.subsections_via_symbols
