	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_set_cert_attribute      ## -- Begin function _hx509_set_cert_attribute
	.p2align	4, 0x90
__hx509_set_cert_attribute:             ## @_hx509_set_cert_attribute
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, %r13d
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_hx509_cert_get_attribute
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	8(%rbx), %rdi
	movl	(%rbx), %eax
	leal	8(,%rax,8), %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, 8(%rbx)
	movl	$8, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movq	%rax, %rsi
	addq	$4, %rsi
	movq	%r12, %rdi
	callq	_der_copy_octet_string
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_der_copy_oid
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movq	%r13, (%rax,%rcx,8)
	leal	1(%rcx), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_6
LBB0_2:
	movl	%r13d, %edi
	callq	_hx509_clear_error_string
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_set_cert_attribute      ; -- Begin function _hx509_set_cert_attribute
	.p2align	2
__hx509_set_cert_attribute:             ; @_hx509_set_cert_attribute
	.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, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	mov	x1, x2
	bl	_hx509_cert_get_attribute
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
	lsl	w8, w8, #3
	add	w1, w8, #8
	bl	_realloc
	cbz	x0, LBB0_5
; %bb.3:
	str	x0, [x19, #8]
	mov	w0, #8
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
	add	x1, x0, #4
	mov	x0, x21
	bl	_der_copy_octet_string
	mov	x0, x20
	mov	x1, x22
	bl	_der_copy_oid
	mov	w0, #0
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	str	x22, [x8, x9, lsl #3]
	add	w8, w9, #1
	str	w8, [x19]
	b	LBB0_7
LBB0_5:
	mov	x0, x22
	bl	_hx509_clear_error_string
LBB0_6:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
