	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_module_getctf               ## -- Begin function dt_module_getctf
	.p2align	4, 0x90
_dt_module_getctf:                      ## @dt_module_getctf
	.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), %rax
	testq	%rax, %rax
	jne	LBB0_22
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_dt_module_load
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	jmp	LBB0_22
LBB0_3:
	movq	32(%rbx), %rax
	cmpq	_dt_modops_64@GOTPCREL(%rip), %rax
	jne	LBB0_4
## %bb.5:
	movq	_CTF_MODEL_LP64@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_CTF_MODEL_ILP32@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r15d
	cmpl	%r15d, 4(%r14)
	jne	LBB0_7
## %bb.9:
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.11:
	leaq	24(%rbx), %rdi
	leaq	16(%rbx), %rsi
	leaq	12(%rbx), %rdx
	movq	%r14, %rcx
	callq	_ctf_bufopen
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_ctf_setmodel
	movq	(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_ctf_setspecific
	movq	(%rbx), %rdi
	callq	_ctf_parent_name
	testq	%rax, %rax
	je	LBB0_23
## %bb.14:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dt_module_create
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dt_module_getctf
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:
	movq	(%rbx), %rdi
	movq	%rax, %rsi
	callq	_ctf_import
	movq	_CTF_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.18:
	movq	(%rbx), %rdi
	callq	_ctf_errno
	movl	%eax, (%r14)
	movq	_EDT_CTF@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_7:
	movq	_EDT_DATAMODEL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	_EDT_NOCTF@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_12:
	movq	_EDT_CTF@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dt_set_errno
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	8(%rbx), %esi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_dt_dprintf
	movq	(%rbx), %rax
	jmp	LBB0_22
LBB0_15:
	movq	_EDT_NOMEM@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dt_set_errno
LBB0_20:
	movq	(%rbx), %rdi
	callq	_ctf_close
	movq	$0, (%rbx)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_dt_modops_64,4,2               ## @dt_modops_64
	.comm	_CTF_MODEL_LP64,4,2             ## @CTF_MODEL_LP64
	.comm	_CTF_MODEL_ILP32,4,2            ## @CTF_MODEL_ILP32
	.comm	_EDT_DATAMODEL,4,2              ## @EDT_DATAMODEL
	.comm	_EDT_NOCTF,4,2                  ## @EDT_NOCTF
	.comm	_EDT_CTF,4,2                    ## @EDT_CTF
	.comm	_EDT_NOMEM,4,2                  ## @EDT_NOMEM
	.comm	_CTF_ERR,8,3                    ## @CTF_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"loaded CTF container for %s (%p)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_module_getctf               ; -- Begin function dt_module_getctf
	.p2align	2
_dt_module_getctf:                      ; @dt_module_getctf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	x0, [x1]
	cbnz	x0, LBB0_15
; %bb.1:
	mov	x19, x1
	mov	x0, x20
	bl	_dt_module_load
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x19]
	b	LBB0_15
LBB0_3:
Lloh0:
	adrp	x8, _dt_modops_64@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dt_modops_64@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CTF_MODEL_LP64@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CTF_MODEL_LP64@GOTPAGEOFF]
Lloh4:
	adrp	x10, _CTF_MODEL_ILP32@GOTPAGE
Lloh5:
	ldr	x10, [x10, _CTF_MODEL_ILP32@GOTPAGEOFF]
	ldr	x11, [x19, #32]
	cmp	x11, x8
	csel	x8, x9, x10, eq
	ldr	w21, [x8]
	ldr	w8, [x20, #4]
	cmp	w8, w21
	b.ne	LBB0_11
; %bb.4:
	mov	x0, x19
	ldr	x8, [x0, #24]!
	cbz	x8, LBB0_12
; %bb.5:
	add	x1, x19, #16
	add	x2, x19, #12
	mov	x3, x20
	bl	_ctf_bufopen
	str	x0, [x19]
	cbz	x0, LBB0_13
; %bb.6:
	mov	x1, x21
	bl	_ctf_setmodel
	ldr	x0, [x19]
	mov	x1, x19
	bl	_ctf_setspecific
	ldr	x0, [x19]
	bl	_ctf_parent_name
	cbz	x0, LBB0_16
; %bb.7:
	mov	x1, x0
	mov	x0, x20
	bl	_dt_module_create
	cbz	x0, LBB0_17
; %bb.8:
	mov	x1, x0
	mov	x0, x20
	bl	_dt_module_getctf
	cbz	x0, LBB0_19
; %bb.9:
	mov	x1, x0
	ldr	x0, [x19]
	bl	_ctf_import
Lloh6:
	adrp	x8, _CTF_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CTF_ERR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.10:
	ldr	x0, [x19]
	bl	_ctf_errno
	str	w0, [x20]
Lloh9:
	adrp	x8, _EDT_CTF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EDT_CTF@GOTPAGEOFF]
	b	LBB0_18
LBB0_11:
Lloh11:
	adrp	x8, _EDT_DATAMODEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EDT_DATAMODEL@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh13:
	adrp	x8, _EDT_NOCTF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EDT_NOCTF@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh15:
	adrp	x8, _EDT_CTF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EDT_CTF@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dt_set_errno
	mov	x0, #0
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	w1, [x19, #8]
	ldr	x2, [x19]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dt_dprintf
	ldr	x0, [x19]
	b	LBB0_15
LBB0_17:
Lloh19:
	adrp	x8, _EDT_NOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EDT_NOMEM@GOTPAGEOFF]
LBB0_18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dt_set_errno
LBB0_19:
	ldr	x0, [x19]
	bl	_ctf_close
	mov	x0, #0
	str	xzr, [x19]
	b	LBB0_15
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_dt_modops_64,4,2               ; @dt_modops_64
	.comm	_CTF_MODEL_LP64,4,2             ; @CTF_MODEL_LP64
	.comm	_CTF_MODEL_ILP32,4,2            ; @CTF_MODEL_ILP32
	.comm	_EDT_DATAMODEL,4,2              ; @EDT_DATAMODEL
	.comm	_EDT_NOCTF,4,2                  ; @EDT_NOCTF
	.comm	_EDT_CTF,4,2                    ; @EDT_CTF
	.comm	_EDT_NOMEM,4,2                  ; @EDT_NOMEM
	.comm	_CTF_ERR,8,3                    ; @CTF_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"loaded CTF container for %s (%p)\n"

.subsections_via_symbols
