	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LSAPI_GetHeader_r              ## -- Begin function LSAPI_GetHeader_r
	.p2align	4, 0x90
_LSAPI_GetHeader_r:                     ## @LSAPI_GetHeader_r
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	_H_TRANSFER_ENCODING@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jb	LBB0_7
## %bb.2:
	movq	8(%rdi), %rdx
	movq	(%rdx), %rax
	movslq	%esi, %rsi
	movslq	(%rax,%rsi,4), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	(%rdi), %rax
	leaq	(%rax,%rcx), %r8
	movq	8(%rdx), %rdx
	movslq	(%rdx,%rsi,4), %rdx
	cmpb	$0, (%rdx,%r8)
	je	LBB0_6
## %bb.5:
	movb	$0, (%r8,%rdx)
	movq	(%rdi), %rax
LBB0_6:
	addq	%rcx, %rax
LBB0_7:
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H_TRANSFER_ENCODING,4,2        ## @H_TRANSFER_ENCODING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LSAPI_GetHeader_r              ; -- Begin function LSAPI_GetHeader_r
	.p2align	2
_LSAPI_GetHeader_r:                     ; @LSAPI_GetHeader_r
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x8, #0
	cbz	x0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x9, _H_TRANSFER_ENCODING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _H_TRANSFER_ENCODING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w1
	b.lo	LBB0_6
; %bb.2:
	ldr	x10, [x0, #8]
	ldr	x8, [x10]
	ldrsw	x8, [x8, w1, sxtw #2]
	cbz	w8, LBB0_7
; %bb.3:
	sxtw	x12, w1
	ldr	x9, [x0]
	add	x11, x9, x8
	ldr	x10, [x10, #8]
	ldrsw	x10, [x10, x12, lsl #2]
	ldrb	w12, [x11, x10]
	cbz	w12, LBB0_5
; %bb.4:
	strb	wzr, [x11, x10]
	ldr	x9, [x0]
LBB0_5:
	add	x8, x9, x8
LBB0_6:
	mov	x0, x8
	ret
LBB0_7:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_H_TRANSFER_ENCODING,4,2        ; @H_TRANSFER_ENCODING
.subsections_via_symbols
