	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_PURPOSE_get_by_id         ## -- Begin function X509_PURPOSE_get_by_id
	.p2align	4, 0x90
_X509_PURPOSE_get_by_id:                ## @X509_PURPOSE_get_by_id
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_X509_PURPOSE_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	jg	LBB0_3
## %bb.1:
	movq	_X509_PURPOSE_MAX@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jl	LBB0_3
## %bb.2:
	subl	%eax, %edi
	movl	%edi, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_xptable@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	%edi, -16(%rbp)
	leaq	-16(%rbp), %rsi
	movq	%rax, %rdi
	callq	_sk_X509_PURPOSE_find
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	_X509_PURPOSE_COUNT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_PURPOSE_MIN,4,2           ## @X509_PURPOSE_MIN
	.comm	_X509_PURPOSE_MAX,4,2           ## @X509_PURPOSE_MAX
	.comm	_xptable,8,3                    ## @xptable
	.comm	_X509_PURPOSE_COUNT,4,2         ## @X509_PURPOSE_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_PURPOSE_get_by_id         ; -- Begin function X509_PURPOSE_get_by_id
	.p2align	2
_X509_PURPOSE_get_by_id:                ; @X509_PURPOSE_get_by_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _X509_PURPOSE_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_PURPOSE_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _X509_PURPOSE_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _X509_PURPOSE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #8, le
	b.ge	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _xptable@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xptable@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	str	w0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x8
	bl	_sk_X509_PURPOSE_find
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _X509_PURPOSE_COUNT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X509_PURPOSE_COUNT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w0, w8, w0
	b	LBB0_6
LBB0_4:
	sub	w0, w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_PURPOSE_MIN,4,2           ; @X509_PURPOSE_MIN
	.comm	_X509_PURPOSE_MAX,4,2           ; @X509_PURPOSE_MAX
	.comm	_xptable,8,3                    ; @xptable
	.comm	_X509_PURPOSE_COUNT,4,2         ; @X509_PURPOSE_COUNT
.subsections_via_symbols
