	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_get_sig_alg       ## -- Begin function mbedtls_x509_get_sig_alg
	.p2align	4, 0x90
_mbedtls_x509_get_sig_alg:              ## @mbedtls_x509_get_sig_alg
	.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
	cmpq	$0, (%r8)
	je	LBB0_2
## %bb.1:
	movq	_MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_2:
	movq	%rsi, %rbx
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_mbedtls_oid_get_sig_alg
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_MBEDTLS_ASN1_NULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_6:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
LBB0_8:
	movq	_MBEDTLS_ERR_X509_INVALID_ALG@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_X509_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_X509_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG,4,2 ## @MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG
	.comm	_MBEDTLS_ASN1_NULL,8,3          ## @MBEDTLS_ASN1_NULL
	.comm	_MBEDTLS_ERR_X509_INVALID_ALG,4,2 ## @MBEDTLS_ERR_X509_INVALID_ALG
	.comm	_MBEDTLS_ERR_X509_ALLOC_FAILED,4,2 ## @MBEDTLS_ERR_X509_ALLOC_FAILED
	.comm	_MBEDTLS_PK_RSASSA_PSS,8,3      ## @MBEDTLS_PK_RSASSA_PSS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_get_sig_alg       ; -- Begin function mbedtls_x509_get_sig_alg
	.p2align	2
_mbedtls_x509_get_sig_alg:              ; @mbedtls_x509_get_sig_alg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x4]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_3:
	mov	x19, x1
	mov	x1, x2
	mov	x2, x3
	bl	_mbedtls_oid_get_sig_alg
	cbz	w0, LBB0_6
; %bb.4:
Lloh2:
	adrp	x8, _MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w0, w8, w0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
Lloh5:
	adrp	x9, _MBEDTLS_ASN1_NULL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MBEDTLS_ASN1_NULL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_ALG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_ALG@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_X509_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_X509_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG,4,2 ; @MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG
	.comm	_MBEDTLS_ASN1_NULL,8,3          ; @MBEDTLS_ASN1_NULL
	.comm	_MBEDTLS_ERR_X509_INVALID_ALG,4,2 ; @MBEDTLS_ERR_X509_INVALID_ALG
	.comm	_MBEDTLS_ERR_X509_ALLOC_FAILED,4,2 ; @MBEDTLS_ERR_X509_ALLOC_FAILED
	.comm	_MBEDTLS_PK_RSASSA_PSS,8,3      ; @MBEDTLS_PK_RSASSA_PSS
.subsections_via_symbols
