	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_get_interlaced_row
_png_get_interlaced_row:                ## @png_get_interlaced_row
	.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	%r8, %r14
	movl	%esi, %eax
	movq	%rdi, %r15
	movslq	%ecx, %rcx
	leaq	_png_get_interlaced_row.masks(%rip), %rsi
	movl	(%rsi,%rcx,4), %esi
	cmpl	$1, %edx
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	jle	LBB0_11
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	%ebx, %edi
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	andl	$7, %ecx
	movl	%r8d, %edx
	shll	%cl, %edx
	testb	$-128, %dl
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edx
	shrl	$3, %edx
	movl	(%r14,%rdx,4), %edx
	xorb	$7, %cl
	movzbl	%cl, %ecx
	xorl	%esi, %esi
	btl	%ecx, %edx
	setb	%sil
	movl	%eax, %ecx
	notb	%cl
	andb	$7, %cl
	shll	%cl, %esi
	movl	%eax, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rcx
	orl	%esi, (%r15,%rcx,4)
	incl	%eax
	jmp	LBB0_5
LBB0_6:
	testl	%r9d, %r9d
	jle	LBB0_11
## %bb.7:
	sarl	$3, %edx
	movslq	%edx, %r12
	leaq	(,%r12,4), %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%r13d
	addq	%rbx, %r14
	cmpl	%r13d, %r9d
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %ecx
	andb	$7, %cl
	movl	%esi, %eax
	shll	%cl, %eax
	testb	$-128, %al
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	leaq	(%r15,%r12,4), %r15
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @png_get_interlaced_row.masks
_png_get_interlaced_row.masks:
	.long	128                             ## 0x80
	.long	8                               ## 0x8
	.long	136                             ## 0x88
	.long	34                              ## 0x22
	.long	170                             ## 0xaa
	.long	85                              ## 0x55
	.long	255                             ## 0xff

	.no_dead_strip	_png_get_interlaced_row
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_get_interlaced_row
_png_get_interlaced_row:                ; @png_get_interlaced_row
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x21, x0
Lloh0:
	adrp	x9, _png_get_interlaced_row.masks@PAGE
Lloh1:
	add	x9, x9, _png_get_interlaced_row.masks@PAGEOFF
	ldr	w23, [x9, w3, sxtw #2]
	cmp	w2, #1
	b.ne	LBB0_6
; %bb.1:
	mov	x8, x1
	mov	x0, x21
	mov	w1, #0
	mov	x2, x8
	bl	_memset
	cmp	w19, #1
	b.lt	LBB0_11
; %bb.2:
	mov	w8, #0
	mov	w9, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	cmp	w19, w8
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	and	w10, w8, #0x7
	lsl	w11, w23, w10
	tbz	w11, #7, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	w11, w8, #3
	ldr	w11, [x20, w11, uxtw #2]
	eor	w10, w10, #0x7
	lsr	w10, w11, w10
	and	w10, w10, #0x1
	mvn	w11, w9
	and	w11, w11, #0x7
	lsl	w10, w10, w11
	asr	w11, w9, #3
	sbfiz	x11, x11, #2, #32
	ldr	w12, [x21, x11]
	orr	w10, w10, w12
	str	w10, [x21, x11]
	add	w9, w9, #1
	b	LBB0_3
LBB0_6:
	cmp	w19, #1
	b.lt	LBB0_11
; %bb.7:
	mov	w24, #0
	asr	w22, w2, #3
	sxtw	x25, w22
	sbfiz	x26, x22, #2, #32
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w24, w24, #1
	add	x20, x20, x26
	cmp	w19, w24
	b.eq	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w24, #0x7
	lsl	w8, w23, w8
	tbz	w8, #7, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	add	x21, x21, x25, lsl #2
	b	LBB0_8
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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @png_get_interlaced_row.masks
_png_get_interlaced_row.masks:
	.long	128                             ; 0x80
	.long	8                               ; 0x8
	.long	136                             ; 0x88
	.long	34                              ; 0x22
	.long	170                             ; 0xaa
	.long	85                              ; 0x55
	.long	255                             ; 0xff

	.no_dead_strip	_png_get_interlaced_row
.subsections_via_symbols
