	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x509_write_extension
_x509_write_extension:                  ## @x509_write_extension
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rdx), %rdx
	addq	$8, %rdx
	movl	24(%rbx), %ecx
	decl	%ecx
	callq	_mbedtls_asn1_write_raw_buffer
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movslq	24(%rbx), %rdx
	decq	%rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_asn1_write_len
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movq	_MBEDTLS_ASN1_OCTET_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_asn1_write_tag
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_mbedtls_asn1_write_bool
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
LBB0_2:
	movq	(%rbx), %rdx
	movl	8(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_asn1_write_raw_buffer
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movslq	8(%rbx), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_asn1_write_len
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movq	_MBEDTLS_ASN1_OID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_asn1_write_tag
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movq	%r15, %rdi
	movq	%r14, %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	%r15, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_asn1_write_tag
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_OCTET_STRING,4,2  ## @MBEDTLS_ASN1_OCTET_STRING
	.comm	_MBEDTLS_ASN1_OID,4,2           ## @MBEDTLS_ASN1_OID
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ## @MBEDTLS_ASN1_SEQUENCE
	.no_dead_strip	_x509_write_extension
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x509_write_extension
_x509_write_extension:                  ; @x509_write_extension
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x2, #16]
	add	x2, x8, #8
	ldr	w8, [x21, #24]
	sub	w3, w8, #1
	bl	_mbedtls_asn1_write_raw_buffer
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
	ldrsw	x8, [x21, #24]
	sub	x2, x8, #1
	mov	x0, x20
	mov	x1, x19
	bl	_mbedtls_asn1_write_len
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
Lloh0:
	adrp	x8, _MBEDTLS_ASN1_OCTET_STRING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ASN1_OCTET_STRING@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_mbedtls_asn1_write_tag
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_mbedtls_asn1_write_bool
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
LBB0_2:
	ldr	x2, [x21]
	ldr	w3, [x21, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_mbedtls_asn1_write_raw_buffer
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
	ldrsw	x2, [x21, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_mbedtls_asn1_write_len
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
Lloh3:
	adrp	x8, _MBEDTLS_ASN1_OID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ASN1_OID@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_mbedtls_asn1_write_tag
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
	mov	x0, x20
	mov	x1, x19
	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, x20
	mov	x1, x19
	bl	_mbedtls_asn1_write_tag
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_OCTET_STRING,4,2  ; @MBEDTLS_ASN1_OCTET_STRING
	.comm	_MBEDTLS_ASN1_OID,4,2           ; @MBEDTLS_ASN1_OID
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ; @MBEDTLS_ASN1_SEQUENCE
	.no_dead_strip	_x509_write_extension
.subsections_via_symbols
