	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_setmodel                   ## -- Begin function ctf_setmodel
	.p2align	4, 0x90
_ctf_setmodel:                          ## @ctf_setmodel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	__libctf_models@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, (%rax)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 24(%rax)
	leaq	16(%rax), %rax
	jne	LBB0_1
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_ctf_set_errno                  ## TAILCALL
LBB0_4:
	movq	%rax, (%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__libctf_models,8,3             ## @_libctf_models
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_setmodel                   ; -- Begin function ctf_setmodel
	.p2align	2
_ctf_setmodel:                          ; @ctf_setmodel
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, __libctf_models@GOTPAGE
Lloh1:
	ldr	x8, [x8, __libctf_models@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	cmp	w9, w1
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x8, #24]
	add	x8, x8, #16
	cbnz	x9, LBB0_1
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	b	_ctf_set_errno
LBB0_4:
	str	x8, [x0]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	__libctf_models,8,3             ; @_libctf_models
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
