	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2400m_bcf_hdr_find
_i2400m_bcf_hdr_find:                   ## @i2400m_bcf_hdr_find
	.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
	movq	%rdi, %rbx
	callq	_i2400m_dev
	movq	%rax, %r12
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdx
	movl	$2, %edi
	movq	%r12, %rsi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_d_printf
	movq	_I2400M_NBOOT_BARKER@GOTPCREL(%rip), %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r14
	movq	(%r14), %r13
	cmpq	(%rax), %r15
	jne	LBB0_2
## %bb.1:
	movl	(%r13), %edi
	callq	_le32_to_cpu
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_i2400m_bcf_hdr_match
	movq	%rax, %r15
	movl	(%r13), %edi
	callq	_le32_to_cpu
	testq	%r15, %r15
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	movq	%r12, %rsi
	leaq	L_.str.3(%rip), %rdx
	movl	%ebx, %ecx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_d_printf
	movq	8(%r14,%rbx,8), %r13
	incq	%rbx
	testq	%r13, %r13
	jne	LBB0_4
LBB0_8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_dev_err
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %edi
	movq	%r12, %rsi
	movl	%ebx, %ecx
LBB0_6:
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_d_printf
LBB0_9:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"finding BCF header for barker %08x\n"

	.comm	_I2400M_NBOOT_BARKER,8,3        ## @I2400M_NBOOT_BARKER
L_.str.1:                               ## @.str.1
	.asciz	"using BCF header #%u/%08x for non-signed barker\n"

L_.str.2:                               ## @.str.2
	.asciz	"hit on BCF hdr #%u/%08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"miss on BCF hdr #%u/%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"cannot find a matching BCF header for barker %08x\n"

	.no_dead_strip	_i2400m_bcf_hdr_find
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2400m_bcf_hdr_find
_i2400m_bcf_hdr_find:                   ; @i2400m_bcf_hdr_find
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x0
	bl	_i2400m_dev
	mov	x19, x0
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	mov	x22, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #2
	mov	x1, x19
	mov	x3, x22
	bl	_d_printf
Lloh2:
	adrp	x8, _I2400M_NBOOT_BARKER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2400M_NBOOT_BARKER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x8]
	ldr	x8, [x20]
	ldr	x21, [x8]
	cmp	x22, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x21]
	bl	_le32_to_cpu
	str	x0, [sp]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	mov	w3, #0
	b	LBB0_8
LBB0_2:
	cbz	x21, LBB0_6
; %bb.3:
	mov	x23, #0
	add	x26, x8, #8
Lloh7:
	adrp	x24, l_.str.3@PAGE
Lloh8:
	add	x24, x24, l_.str.3@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_i2400m_bcf_hdr_match
	mov	x25, x0
	ldr	w0, [x21]
	bl	_le32_to_cpu
	cbnz	x25, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [sp]
	mov	w0, #1
	mov	x1, x19
	mov	x2, x24
	mov	x3, x23
	bl	_d_printf
	ldr	x21, [x26, x23, lsl #3]
	add	x23, x23, #1
	cbnz	x21, LBB0_4
LBB0_6:
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
	mov	x21, #0
	b	LBB0_9
LBB0_7:
	str	x0, [sp]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	mov	x3, x23
LBB0_8:
	bl	_d_printf
LBB0_9:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"finding BCF header for barker %08x\n"

	.comm	_I2400M_NBOOT_BARKER,8,3        ; @I2400M_NBOOT_BARKER
l_.str.1:                               ; @.str.1
	.asciz	"using BCF header #%u/%08x for non-signed barker\n"

l_.str.2:                               ; @.str.2
	.asciz	"hit on BCF hdr #%u/%08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"miss on BCF hdr #%u/%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"cannot find a matching BCF header for barker %08x\n"

	.no_dead_strip	_i2400m_bcf_hdr_find
.subsections_via_symbols
