	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509write_crt_set_basic_constraints ## -- Begin function mbedtls_x509write_crt_set_basic_constraints
	.p2align	4, 0x90
_mbedtls_x509write_crt_set_basic_constraints: ## @mbedtls_x509write_crt_set_basic_constraints
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-40(%rbp), %r14
	movq	%r14, -64(%rbp)
	leaq	-49(%rbp), %rdi
	xorl	%esi, %esi
	movl	$9, %edx
	callq	_memset
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$128, %r12d
	jl	LBB0_3
## %bb.2:
	movq	_MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_3:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:
	testl	%r12d, %r12d
	js	LBB0_6
## %bb.5:
	leaq	-64(%rbp), %rdi
	leaq	-49(%rbp), %rsi
	movl	%r12d, %edx
	callq	_mbedtls_asn1_write_int
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
LBB0_6:
	leaq	-64(%rbp), %rdi
	leaq	-49(%rbp), %rsi
	movl	$1, %edx
	callq	_mbedtls_asn1_write_bool
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
LBB0_7:
	leaq	-64(%rbp), %rbx
	leaq	-49(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_mbedtls_asn1_write_len
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_mbedtls_asn1_write_tag
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movq	_MBEDTLS_OID_BASIC_CONSTRAINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_MBEDTLS_OID_SIZE
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	xorl	%r9d, %r9d
	callq	_mbedtls_x509write_crt_set_extension
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_X509_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_X509_BAD_INPUT_DATA
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ## @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_OID_BASIC_CONSTRAINTS,4,2 ## @MBEDTLS_OID_BASIC_CONSTRAINTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509write_crt_set_basic_constraints ; -- Begin function mbedtls_x509write_crt_set_basic_constraints
	.p2align	2
_mbedtls_x509write_crt_set_basic_constraints: ; @mbedtls_x509write_crt_set_basic_constraints
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x8, sp, #15
	add	x20, x8, #9
	str	x20, [sp]
	add	x0, sp, #15
	mov	w1, #0
	mov	w2, #9
	bl	_memset
	cbz	w22, LBB0_3
; %bb.1:
	cmp	w21, #128
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_3:
	cbz	w22, LBB0_7
; %bb.4:
	tbnz	w21, #31, LBB0_6
; %bb.5:
	mov	x0, sp
	add	x1, sp, #15
	mov	x2, x21
	bl	_mbedtls_asn1_write_int
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
LBB0_6:
	mov	x0, sp
	add	x1, sp, #15
	mov	w2, #1
	bl	_mbedtls_asn1_write_bool
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
LBB0_7:
	mov	x0, sp
	add	x1, sp, #15
	mov	x2, #0
	bl	_mbedtls_asn1_write_len
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
Lloh6:
	adrp	x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, sp
	add	x1, sp, #15
	bl	_mbedtls_asn1_write_tag
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
Lloh12:
	adrp	x8, _MBEDTLS_OID_BASIC_CONSTRAINTS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBEDTLS_OID_BASIC_CONSTRAINTS@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_MBEDTLS_OID_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	x4, x20
	mov	x5, #0
	bl	_mbedtls_x509write_crt_set_extension
LBB0_8:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.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
	add	sp, sp, #80
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_X509_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_X509_BAD_INPUT_DATA
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ; @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_OID_BASIC_CONSTRAINTS,4,2 ; @MBEDTLS_OID_BASIC_CONSTRAINTS
.subsections_via_symbols
