	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_unknown_extension
_handle_unknown_extension:              ## @handle_unknown_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r13d, %r13d
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.1:
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%r9, %r14
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %rbx
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	(%r14), %rax
	movq	_UINT16_MAX@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_5
## %bb.4:
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_5:
	xorl	%r15d, %r15d
	movq	_MAX_UNKNOWN_EXTENSIONS@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpq	(%r12), %r15
	setb	%dil
	callq	_assert
	cmpq	%rbx, (%r14)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movq	16(%r14), %rax
	addq	$16, %r14
	movq	_UINT16_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_8:
	movq	_MAX_UNKNOWN_EXTENSIONS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jae	LBB0_11
## %bb.9:
	movq	%rbx, (%r14)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	subq	%rdi, %rsi
	shrq	$2, %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ptls_iovec_init
	shlq	$4, %r15
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx,%r15)
	movq	_UINT16_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rcx,%r15)
	jmp	LBB0_11
LBB0_10:
	movq	_PTLS_ALERT_ILLEGAL_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT16_MAX,8,3                 ## @UINT16_MAX
	.comm	_MAX_UNKNOWN_EXTENSIONS,8,3     ## @MAX_UNKNOWN_EXTENSIONS
	.comm	_PTLS_ALERT_ILLEGAL_PARAMETER,4,2 ## @PTLS_ALERT_ILLEGAL_PARAMETER
	.no_dead_strip	_handle_unknown_extension
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_unknown_extension
_handle_unknown_extension:              ; @handle_unknown_extension
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x1, LBB0_10
; %bb.1:
	ldr	x8, [x1]
	cbz	x8, LBB0_10
; %bb.2:
	mov	x19, x5
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	blr	x8
	cbz	x0, LBB0_11
; %bb.3:
	ldr	x8, [x19]
Lloh0:
	adrp	x23, _UINT16_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _UINT16_MAX@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh2:
	adrp	x25, _MAX_UNKNOWN_EXTENSIONS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MAX_UNKNOWN_EXTENSIONS@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x24, #0
	mov	x26, x19
	b	LBB0_8
LBB0_5:
	mov	x24, #0
	mov	x26, x19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	cmp	x24, x8
	cset	w0, lo
	bl	_assert
	ldr	x8, [x26]
	cmp	x8, x22
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldr	x8, [x26, #16]!
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_8:
	ldr	x8, [x25]
	cmp	x24, x8
	b.hs	LBB0_10
; %bb.9:
	str	x22, [x26]
	sub	x8, x21, x20
	lsr	x1, x8, #2
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ptls_iovec_init
	mov	x8, x0
	mov	w0, #0
	add	x9, x19, x24, lsl #4
	str	w8, [x9, #8]
	ldr	x8, [x23]
	str	x8, [x9, #16]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh4:
	adrp	x8, _PTLS_ALERT_ILLEGAL_PARAMETER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PTLS_ALERT_ILLEGAL_PARAMETER@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT16_MAX,8,3                 ; @UINT16_MAX
	.comm	_MAX_UNKNOWN_EXTENSIONS,8,3     ; @MAX_UNKNOWN_EXTENSIONS
	.comm	_PTLS_ALERT_ILLEGAL_PARAMETER,4,2 ; @PTLS_ALERT_ILLEGAL_PARAMETER
	.no_dead_strip	_handle_unknown_extension
.subsections_via_symbols
