	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ir_decode_biphase              ## -- Begin function ir_decode_biphase
	.p2align	4, 0x90
_ir_decode_biphase:                     ## @ir_decode_biphase
	.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
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_getbit
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	cmpl	$32, %ebx
	jne	LBB0_1
## %bb.3:
	movl	$32, %ebx
LBB0_4:
	shll	$5, %r14d
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	cmpl	%r14d, %ebx
	jge	LBB0_14
## %bb.5:
	xorl	%r12d, %r12d
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%r14d
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	movl	%eax, %r15d
	cmpl	%ebx, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	jg	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$1, %r12d
	jg	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_getbit
	cmpl	%eax, %r15d
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	incl	%r14d
	incl	%r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, %ecx
	orl	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movl	$1, %r14d
	jmp	LBB0_13
LBB0_14:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ir_decode_biphase              ; -- Begin function ir_decode_biphase
	.p2align	2
_ir_decode_biphase:                     ; @ir_decode_biphase
	.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, x3
	mov	x20, x2
	mov	x24, x1
	mov	x21, x0
	mov	w22, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_getbit
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w22, w22, #1
	cmp	w22, #32
	b.ne	LBB0_1
LBB0_3:
	lsl	w25, w24, #5
	cmp	w22, w25
	b.ge	LBB0_8
; %bb.4:
	mov	w26, #0
	mov	w27, #0
	mov	w28, #1
	mov	w24, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w27, w19
	b.gt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, #1
	b.gt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_getbit
	orr	w8, w0, w24, lsl #1
	cmp	w27, w20
	csel	w8, w8, w24, ge
	csinc	w9, w28, w27, ge
	csinc	w10, wzr, w26, ge
	cmp	w23, w0
	csel	w26, w10, w26, ne
	csinc	w27, w9, w27, ne
	csel	w24, w8, w24, ne
	add	w22, w22, #1
	mov	x23, x0
	cmp	w25, w22
	b.ne	LBB0_5
	b	LBB0_9
LBB0_8:
	mov	w24, #1
LBB0_9:
	mov	x0, x24
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
