	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbp2_init_workarounds
_sbp2_init_workarounds:                 ## @sbp2_init_workarounds
	.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	%edx, %r15d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	_sbp2_param_workarounds@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_tgt_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_notice
LBB0_2:
	movq	_SBP2_WORKAROUND_OVERRIDE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_11
## %bb.3:
	movq	_sbp2_workarounds_table@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %r14d
	andl	$-256, %r14d
	movl	$8, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	callq	_ARRAY_SIZE
	cltq
	addq	$12, %r12
	cmpq	%rax, %r15
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	cmpl	%r14d, -8(%rdi,%r12)
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	-4(%rdi,%r12), %rax
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_SBP2_ROM_VALUE_WILDCARD@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_9
LBB0_8:
	orl	(%rdi,%r12), %ebx
LBB0_10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_11:
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_tgt_dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_notice
LBB0_13:
	movl	%ebx, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sbp2_param_workarounds,4,2     ## @sbp2_param_workarounds
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Please notify linux1394-devel@lists.sf.net if you need the workarounds parameter\n"

	.comm	_SBP2_WORKAROUND_OVERRIDE,4,2   ## @SBP2_WORKAROUND_OVERRIDE
	.comm	_sbp2_workarounds_table,8,3     ## @sbp2_workarounds_table
	.comm	_SBP2_ROM_VALUE_WILDCARD,8,3    ## @SBP2_ROM_VALUE_WILDCARD
L_.str.1:                               ## @.str.1
	.asciz	"workarounds 0x%x (firmware_revision 0x%06x, model_id 0x%06x)\n"

	.no_dead_strip	_sbp2_init_workarounds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbp2_init_workarounds
_sbp2_init_workarounds:                 ; @sbp2_init_workarounds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _sbp2_param_workarounds@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sbp2_param_workarounds@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	cbz	w22, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_tgt_dev
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_notice
LBB0_2:
Lloh5:
	adrp	x8, _SBP2_WORKAROUND_OVERRIDE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SBP2_WORKAROUND_OVERRIDE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
LBB0_3:
	cbz	w22, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_tgt_dev
	stp	x20, x21, [sp, #8]
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_notice
LBB0_5:
	str	w22, [x19]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
Lloh10:
	adrp	x23, _sbp2_workarounds_table@GOTPAGE
Lloh11:
	ldr	x23, [x23, _sbp2_workarounds_table@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.7:
	mov	x24, #0
	mov	x25, #0
	and	w26, w20, #0xffffff00
Lloh12:
	adrp	x27, _SBP2_ROM_VALUE_WILDCARD@GOTPAGE
Lloh13:
	ldr	x27, [x27, _SBP2_ROM_VALUE_WILDCARD@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	bl	_ARRAY_SIZE
	add	x24, x24, #12
	cmp	x25, w0, sxtw
	b.ge	LBB0_3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldr	w8, [x0, x24]
	cmp	w8, w26
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x0, x24
	ldrsw	x9, [x8, #4]
	ldr	x10, [x27]
	cmp	w9, w21
	ccmp	x10, x9, #4, ne
	b.ne	LBB0_8
; %bb.11:
	ldr	w8, [x8, #8]
	orr	w22, w8, w22
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_sbp2_param_workarounds,4,2     ; @sbp2_param_workarounds
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Please notify linux1394-devel@lists.sf.net if you need the workarounds parameter\n"

	.comm	_SBP2_WORKAROUND_OVERRIDE,4,2   ; @SBP2_WORKAROUND_OVERRIDE
	.comm	_sbp2_workarounds_table,8,3     ; @sbp2_workarounds_table
	.comm	_SBP2_ROM_VALUE_WILDCARD,8,3    ; @SBP2_ROM_VALUE_WILDCARD
l_.str.1:                               ; @.str.1
	.asciz	"workarounds 0x%x (firmware_revision 0x%06x, model_id 0x%06x)\n"

	.no_dead_strip	_sbp2_init_workarounds
.subsections_via_symbols
