	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function blackbird_find_mailbox
_blackbird_find_mailbox:                ## @blackbird_find_mailbox
	.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	_BLACKBIRD_FIRM_IMAGE_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	xorl	%r13d, %r13d
	movl	$1, %ebx
	leaq	-44(%rbp), %r15
	leaq	L___const.blackbird_find_mailbox.signature(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rbx), %esi
	movl	(%r14), %edi
	movq	%r15, %rdx
	callq	_memory_read
	movl	-44(%rbp), %eax
	movslq	%r13d, %rcx
	cmpl	(%r12,%rcx,4), %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	cmpl	$4, %r13d
	jne	LBB0_7
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	$4, %r13d
	je	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %eax
	movq	_BLACKBIRD_FIRM_IMAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	movl	%eax, %ebx
	jl	LBB0_2
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_dprintk
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.blackbird_find_mailbox.signature
L___const.blackbird_find_mailbox.signature:
	.long	305419896                       ## 0x12345678
	.long	878082066                       ## 0x34567812
	.long	1450709556                      ## 0x56781234
	.long	2014458966                      ## 0x78123456

	.comm	_BLACKBIRD_FIRM_IMAGE_SIZE,4,2  ## @BLACKBIRD_FIRM_IMAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mailbox signature found\n"

L_.str.1:                               ## @.str.1
	.asciz	"Mailbox signature values not found!\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_blackbird_find_mailbox
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blackbird_find_mailbox
_blackbird_find_mailbox:                ; @blackbird_find_mailbox
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
Lloh0:
	adrp	x21, _BLACKBIRD_FIRM_IMAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BLACKBIRD_FIRM_IMAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x0
	mov	w22, #0
	mov	w19, #1
Lloh2:
	adrp	x23, l___const.blackbird_find_mailbox.signature@PAGE
Lloh3:
	add	x23, x23, l___const.blackbird_find_mailbox.signature@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w1, w19, #1
	ldr	w0, [x20]
	add	x2, sp, #12
	bl	_memory_read
	ldr	w8, [sp, #12]
	ldr	w9, [x23, w22, sxtw #2]
	cmp	w8, w9
	csinc	w22, wzr, w22, ne
	cmp	w22, #4
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	add	w9, w19, #1
	cmp	w19, w8
	mov	x19, x9
	b.lt	LBB0_2
LBB0_4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #0
	bl	_dprintk
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
LBB0_6:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.blackbird_find_mailbox.signature
l___const.blackbird_find_mailbox.signature:
	.long	305419896                       ; 0x12345678
	.long	878082066                       ; 0x34567812
	.long	1450709556                      ; 0x56781234
	.long	2014458966                      ; 0x78123456

	.comm	_BLACKBIRD_FIRM_IMAGE_SIZE,4,2  ; @BLACKBIRD_FIRM_IMAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mailbox signature found\n"

l_.str.1:                               ; @.str.1
	.asciz	"Mailbox signature values not found!\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_blackbird_find_mailbox
.subsections_via_symbols
