	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xm_end_chain
_xm_end_chain:                          ## @xm_end_chain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.5:
	movq	_BR_ERR_X509_OK@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.7:
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, 8(%rdi)
	jne	LBB0_2
## %bb.3:
	movq	_BR_ERR_X509_EMPTY_CHAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_BR_ERR_X509_NOT_TRUSTED@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rcx
	movq	%rcx, (%rdi)
LBB0_6:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_ERR_X509_EMPTY_CHAIN,8,3    ## @BR_ERR_X509_EMPTY_CHAIN
	.comm	_BR_ERR_X509_NOT_TRUSTED,8,3    ## @BR_ERR_X509_NOT_TRUSTED
	.comm	_BR_ERR_X509_OK,8,3             ## @BR_ERR_X509_OK
	.no_dead_strip	_xm_end_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xm_end_chain
_xm_end_chain:                          ; @xm_end_chain
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _BR_ERR_X509_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BR_ERR_X509_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_4:
	ldr	x9, [x8, #8]
Lloh3:
	adrp	x10, _BR_ERR_X509_EMPTY_CHAIN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BR_ERR_X509_EMPTY_CHAIN@GOTPAGEOFF]
Lloh5:
	adrp	x11, _BR_ERR_X509_NOT_TRUSTED@GOTPAGE
Lloh6:
	ldr	x11, [x11, _BR_ERR_X509_NOT_TRUSTED@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x10, x11, eq
	ldr	x0, [x9]
	str	x0, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_ERR_X509_EMPTY_CHAIN,8,3    ; @BR_ERR_X509_EMPTY_CHAIN
	.comm	_BR_ERR_X509_NOT_TRUSTED,8,3    ; @BR_ERR_X509_NOT_TRUSTED
	.comm	_BR_ERR_X509_OK,8,3             ; @BR_ERR_X509_OK
	.no_dead_strip	_xm_end_chain
.subsections_via_symbols
