	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_put_interlaced_row
_png_put_interlaced_row:                ## @png_put_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%esi, %r10d
	movq	_png_pass_mask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %r11d
	movq	_png_pass_dsp_mask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %r13d
	cmpl	$1, %edx
	je	LBB0_13
## %bb.1:
	movl	%edx, %r14d
	cmpl	$2, %edx
	je	LBB0_8
## %bb.2:
	cmpl	$4, %r14d
	jne	LBB0_18
## %bb.3:
	testl	%r10d, %r10d
	jle	LBB0_26
## %bb.4:
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	andl	%r11d, %esi
	cmpl	$1, %esi
	sbbl	$-1, %r9d
	incl	%edx
	addl	$4, %r8d
	cmpl	%edx, %r10d
	je	LBB0_26
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %ecx
	andb	$7, %cl
	movl	$128, %esi
	shrl	%cl, %esi
	testl	%r13d, %esi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r9d, %ecx
	shrl	%ecx
	movl	(%r15,%rcx,4), %ebx
	leal	(,%r9,4), %ecx
	notb	%cl
	andb	$4, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	andl	$15, %ebx
	movl	%r8d, %ecx
	andb	$4, %cl
	movl	$65295, %eax                    ## imm = 0xFF0F
	shrl	%cl, %eax
	movl	%edx, %r14d
	shrl	%r14d
	xorb	$4, %cl
	shll	%cl, %ebx
	andl	(%rdi,%r14,4), %eax
	orl	%eax, %ebx
	movl	%ebx, (%rdi,%r14,4)
	jmp	LBB0_7
LBB0_13:
	testl	%r10d, %r10d
	jle	LBB0_26
## %bb.14:
	xorl	%eax, %eax
	xorl	%r9d, %r9d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	andl	%r11d, %esi
	cmpl	$1, %esi
	sbbl	$-1, %r9d
	incl	%eax
	cmpl	%eax, %r10d
	je	LBB0_26
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	andl	$7, %ecx
	movl	$128, %esi
	shrl	%cl, %esi
	testl	%r13d, %esi
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r9d, %ebx
	shrl	$3, %ebx
	movl	(%r15,%rbx,4), %r8d
	movl	%r9d, %ebx
	notb	%bl
	andb	$7, %bl
	movzbl	%bl, %ebx
	xorl	%edx, %edx
	btl	%ebx, %r8d
	setb	%dl
	movl	$65407, %ebx                    ## imm = 0xFF7F
	shrl	%cl, %ebx
	movl	%eax, %r8d
	shrl	$3, %r8d
	xorb	$7, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	andl	(%rdi,%r8,4), %ebx
	orl	%ebx, %edx
	movl	%edx, (%rdi,%r8,4)
	jmp	LBB0_17
LBB0_8:
	testl	%r10d, %r10d
	jle	LBB0_26
## %bb.9:
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	andl	%r11d, %esi
	cmpl	$1, %esi
	sbbl	$-1, %r9d
	incl	%edx
	addl	$2, %r8d
	cmpl	%edx, %r10d
	je	LBB0_26
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, %ecx
	andb	$7, %cl
	movl	$128, %esi
	shrl	%cl, %esi
	testl	%r13d, %esi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r9d, %ecx
	andl	$-4, %ecx
	movl	(%r15,%rcx), %ebx
	leal	(%r9,%r9), %ecx
	notb	%cl
	andb	$6, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	andl	$3, %ebx
	movl	%r8d, %ecx
	andb	$6, %cl
	movl	$65343, %eax                    ## imm = 0xFF3F
	shrl	%cl, %eax
	movl	%edx, %r14d
	andl	$-4, %r14d
	xorb	$6, %cl
	shll	%cl, %ebx
	andl	(%rdi,%r14), %eax
	orl	%eax, %ebx
	movl	%ebx, (%rdi,%r14)
	jmp	LBB0_12
LBB0_18:
	testl	%r10d, %r10d
	jle	LBB0_26
## %bb.19:
	sarl	$3, %r14d
	movslq	%r14d, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	(%r15,%rax,4), %r15
	incl	%r12d
	addq	-64(%rbp), %rdi                 ## 8-byte Folded Reload
	cmpl	%r12d, %r10d
	je	LBB0_26
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %ecx
	andb	$7, %cl
	movl	$128, %ebx
	shrl	%cl, %ebx
	testl	%r13d, %ebx
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r15, %rsi
	movl	%r14d, %edx
	movl	%r10d, %r13d
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%r11d, %r15d
	callq	_memcpy
	movl	%r15d, %r11d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %r10d
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	testl	%r11d, %ebx
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_png_pass_mask,8,3              ## @png_pass_mask
	.comm	_png_pass_dsp_mask,8,3          ## @png_pass_dsp_mask
	.no_dead_strip	_png_put_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_put_interlaced_row
_png_put_interlaced_row:                ; @png_put_interlaced_row
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x20, x1
	mov	x21, x0
	sbfiz	x8, x3, #2, #32
Lloh0:
	adrp	x9, _png_pass_mask@GOTPAGE
Lloh1:
	ldr	x9, [x9, _png_pass_mask@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w23, [x9, x8]
Lloh3:
	adrp	x9, _png_pass_dsp_mask@GOTPAGE
Lloh4:
	ldr	x9, [x9, _png_pass_dsp_mask@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w24, [x9, x8]
	cmp	w2, #1
	b.eq	LBB0_8
; %bb.1:
	cmp	w2, #2
	b.eq	LBB0_13
; %bb.2:
	cmp	w2, #4
	b.ne	LBB0_18
; %bb.3:
	cmp	w20, #1
	b.lt	LBB0_23
; %bb.4:
	mov	w8, #0
	mov	w9, #0
	mov	w10, #0
	mov	w11, #128
	mov	w12, #4
	mov	w13, #65295
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	tst	w14, w23
	cinc	w10, w10, ne
	add	w9, w9, #1
	add	w8, w8, #4
	cmp	w20, w9
	b.eq	LBB0_23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	and	w14, w9, #0x7
	lsr	w14, w11, w14
	tst	w14, w24
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	and	w15, w8, #0x4
	lsr	w16, w10, #1
	ldr	w16, [x19, w16, uxtw #2]
	bic	w17, w12, w10, lsl #2
	asr	w16, w16, w17
	and	w16, w16, #0xf
	lsr	w17, w13, w15
	lsr	w0, w9, #1
	lsl	x0, x0, #2
	ldr	w1, [x21, x0]
	and	w17, w1, w17
	sub	w15, w12, w15
	lsl	w15, w16, w15
	orr	w15, w15, w17
	str	w15, [x21, x0]
	b	LBB0_5
LBB0_8:
	cmp	w20, #1
	b.lt	LBB0_23
; %bb.9:
	mov	w8, #0
	mov	w9, #0
	mov	w10, #128
	mov	w11, #65407
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	tst	w12, w23
	cinc	w9, w9, ne
	add	w8, w8, #1
	cmp	w20, w8
	b.eq	LBB0_23
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	and	w13, w8, #0x7
	lsr	w12, w10, w13
	tst	w12, w24
	b.eq	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mvn	w14, w9
	lsr	w15, w9, #3
	ldr	w15, [x19, w15, uxtw #2]
	and	w14, w14, #0x7
	lsr	w14, w15, w14
	and	w14, w14, #0x1
	lsr	w15, w11, w13
	lsr	w16, w8, #3
	lsl	x16, x16, #2
	ldr	w17, [x21, x16]
	and	w15, w17, w15
	eor	w13, w13, #0x7
	lsl	w13, w14, w13
	orr	w13, w13, w15
	str	w13, [x21, x16]
	b	LBB0_10
LBB0_13:
	cmp	w20, #1
	b.lt	LBB0_23
; %bb.14:
	mov	w8, #0
	mov	w9, #0
	mov	w10, #0
	mov	w11, #128
	mov	w12, #6
	mov	w13, #65343
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	tst	w14, w23
	cinc	w10, w10, ne
	add	w9, w9, #1
	add	w8, w8, #2
	cmp	w20, w9
	b.eq	LBB0_23
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	and	w14, w9, #0x7
	lsr	w14, w11, w14
	tst	w14, w24
	b.eq	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	and	w15, w8, #0x6
	and	w16, w10, #0xfffffffc
	ldr	w16, [x19, w16, uxtw]
	bic	w17, w12, w10, lsl #1
	asr	w16, w16, w17
	and	w16, w16, #0x3
	lsr	w17, w13, w15
	and	w0, w9, #0xfffffffc
	ldr	w1, [x21, x0]
	and	w17, w1, w17
	sub	w15, w12, w15
	lsl	w15, w16, w15
	orr	w15, w15, w17
	str	w15, [x21, x0]
	b	LBB0_15
LBB0_18:
	cmp	w20, #1
	b.lt	LBB0_23
; %bb.19:
	mov	w25, #0
	asr	w22, w2, #3
	sxtw	x26, w22
	sbfiz	x27, x22, #2, #32
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	tst	w28, w23
	csel	x8, xzr, x26, eq
	add	x19, x19, x8, lsl #2
	add	w25, w25, #1
	add	x21, x21, x27
	cmp	w20, w25
	b.eq	LBB0_23
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	and	w8, w25, #0x7
	mov	w9, #128
	lsr	w28, w9, w8
	tst	w28, w24
	b.eq	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_memcpy
	b	LBB0_20
LBB0_23:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_png_pass_mask,8,3              ; @png_pass_mask
	.comm	_png_pass_dsp_mask,8,3          ; @png_pass_dsp_mask
	.no_dead_strip	_png_put_interlaced_row
.subsections_via_symbols
