	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IMG_TAPE_SerinStatus           ## -- Begin function IMG_TAPE_SerinStatus
	.p2align	4, 0x90
_IMG_TAPE_SerinStatus:                  ## @IMG_TAPE_SerinStatus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$1, %ecx
	cmpq	$0, 40(%rdi)
	je	LBB0_1
LBB0_8:
	movl	%ecx, %eax
	popq	%rbp
	retq
LBB0_1:
	movslq	(%rdi), %r9
	testq	%r9, %r9
	je	LBB0_8
## %bb.2:
	cmpq	$0, 32(%rdi)
	je	LBB0_3
## %bb.4:
	movq	8(%rdi), %rax
	movq	16(%rdi), %rdx
	movl	(%rax,%rdx,4), %r8d
	movl	$17897900, %eax                 ## imm = 0x11119AC
	xorl	%edx, %edx
	idivl	%r8d
	decl	%eax
	cmpl	%esi, %eax
	jle	LBB0_8
	jmp	LBB0_5
LBB0_3:
	movl	$600, %r8d                      ## imm = 0x258
	cmpl	$29828, %esi                    ## imm = 0x7484
	jge	LBB0_8
LBB0_5:
	movl	$1789790, %eax                  ## imm = 0x1B4F5E
	xorl	%edx, %edx
	idivl	%r8d
	movl	%eax, %r8d
	movl	%esi, %eax
	cltd
	idivl	%r8d
                                        ## kill: def $eax killed $eax def $rax
	leal	-10(%rax), %edx
	cmpl	$-9, %edx
	jb	LBB0_8
## %bb.6:
	movl	$0, %ecx
	cmpl	$9, %eax
	je	LBB0_8
## %bb.7:
	movq	24(%rdi), %rcx
	movl	-4(%rcx,%r9,4), %edx
	movb	$8, %cl
	subb	%al, %cl
	movzbl	%cl, %eax
	xorl	%ecx, %ecx
	btl	%eax, %edx
	setb	%cl
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IMG_TAPE_SerinStatus           ; -- Begin function IMG_TAPE_SerinStatus
	.p2align	2
_IMG_TAPE_SerinStatus:                  ; @IMG_TAPE_SerinStatus
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #1
	ret
LBB0_2:
	ldr	w8, [x0]
	cbz	w8, LBB0_1
; %bb.3:
	ldr	x9, [x0, #32]
	cbz	x9, LBB0_5
; %bb.4:
	ldp	x9, x10, [x0, #8]
	ldr	w9, [x9, x10, lsl #2]
	mov	w10, #6572
	movk	w10, #273, lsl #16
	sdiv	w10, w10, w9
	sub	w10, w10, #1
	cmp	w10, w1
	b.gt	LBB0_7
	b	LBB0_1
LBB0_5:
	mov	w9, #29828
	cmp	w1, w9
	b.ge	LBB0_1
; %bb.6:
	mov	w9, #600
LBB0_7:
	mov	w10, #20318
	movk	w10, #27, lsl #16
	sdiv	w9, w10, w9
	sdiv	w9, w1, w9
	sub	w10, w9, #10
	cmn	w10, #9
	b.lo	LBB0_1
; %bb.8:
	cmp	w9, #9
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	ret
LBB0_10:
	ldr	x10, [x0, #24]
	sub	w8, w8, #1
	ldr	w8, [x10, w8, sxtw #2]
	mov	w10, #8
	sub	w9, w10, w9
	lsr	w8, w8, w9
	and	w0, w8, #0x1
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
