	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_bus_info_block
_read_bus_info_block:                   ## @read_bus_info_block
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_READ_BIB_ROM_SIZE@GOTPCREL(%rip), %r13
	movq	_READ_BIB_STACK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%r13), %eax
	movl	%esi, %r12d
	movq	%rdi, %r14
	shll	$2, %eax
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movslq	(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_SCODE_100@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_read_rom
	movq	_RCODE_COMPLETE@GOTPCREL(%rip), %rcx
	movl	$-1, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.3:
	cmpl	$0, (%rbx)
	je	LBB0_25
## %bb.4:
	leaq	4(%rbx), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_read_rom
	movq	_RCODE_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.5:
	leaq	8(%rbx), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$2, %edx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	_read_rom
	movq	_RCODE_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.6:
	leaq	12(%rbx), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$3, %edx
	callq	_read_rom
	movq	_RCODE_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.7:
	leaq	16(%rbx), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$4, %edx
	callq	_read_rom
	movq	_RCODE_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.8:
	movq	40(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	andl	$7, %edx
	movq	_SCODE_BETA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%eax, %edx
	jl	LBB0_11
## %bb.9:
	cmpl	%ecx, %eax
	je	LBB0_11
## %bb.10:
	movq	32(%r14), %rdx
	cmpq	$0, 8(%rdx)
	je	LBB0_17
LBB0_11:
	cmpl	%ecx, %eax
	jne	LBB0_14
## %bb.12:
	movq	32(%r14), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_26
LBB0_13:
	movl	%eax, (%r14)
LBB0_14:
	movq	_SCODE_100@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_17
## %bb.15:
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	leaq	-68(%rbp), %rcx
	callq	_read_rom
	movq	_RCODE_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.16:
	movl	(%r14), %eax
	decl	%eax
	jmp	LBB0_13
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$-1073741819, (%rbx,%rax,4)     ## imm = 0xC0000005
	cmpl	$6, (%r13)
	jl	LBB0_25
## %bb.18:
	leaq	20(%rbx), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$5, %edx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_read_rom
	movq	_RCODE_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movswl	2(%rax), %eax
	addl	$5, %eax
	cmpl	(%r13), %eax
	jge	LBB0_25
## %bb.20:
	cmpl	$6, %eax
	movl	$5, %ecx
	cmovgel	%eax, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$5, %r13d
	movl	$24, %esi
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	leaq	(%rbx,%rsi), %rcx
	incq	%r13
	movq	%r14, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_read_rom
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$4, %rsi
	movq	_RCODE_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_21
	jmp	LBB0_25
LBB0_23:
	movq	%r13, %r12
	movq	8(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	%rax, %r13
	incq	%r12
	movq	_fw_device_rwsem@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_down_write
	movq	%r13, 8(%r14)
	movl	%r12d, 16(%r14)
	movq	%r15, %rdi
	callq	_up_write
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	shrl	$12, %eax
	andl	$15, %eax
	movl	%eax, 20(%r14)
	movl	(%rcx), %eax
	shrl	$30, %eax
	andl	$1, %eax
	movl	%eax, 24(%r14)
	movl	(%rcx), %eax
	shrl	$31, %eax
	movl	%eax, 28(%r14)
	xorl	%r15d, %r15d
LBB0_25:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_26:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READ_BIB_ROM_SIZE,4,2          ## @READ_BIB_ROM_SIZE
	.comm	_READ_BIB_STACK_SIZE,4,2        ## @READ_BIB_STACK_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SCODE_100,4,2                  ## @SCODE_100
	.comm	_RCODE_COMPLETE,8,3             ## @RCODE_COMPLETE
	.comm	_SCODE_BETA,4,2                 ## @SCODE_BETA
	.comm	_fw_device_rwsem,4,2            ## @fw_device_rwsem
	.no_dead_strip	_read_bus_info_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_bus_info_block
_read_bus_info_block:                   ; @read_bus_info_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _READ_BIB_ROM_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _READ_BIB_ROM_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x9, _READ_BIB_STACK_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _READ_BIB_STACK_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	add	w8, w9, w8
	lsl	w0, w8, #2
Lloh5:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_kmalloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	ldrsw	x23, [x24]
Lloh7:
	adrp	x25, _SCODE_100@GOTPAGE
Lloh8:
	ldr	x25, [x25, _SCODE_100@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [x20]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x3, x19
	bl	_read_rom
Lloh9:
	adrp	x27, _RCODE_COMPLETE@GOTPAGE
Lloh10:
	ldr	x27, [x27, _RCODE_COMPLETE@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_24
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_24
; %bb.3:
	add	x3, x19, #4
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_read_rom
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_24
; %bb.4:
	add	x22, x19, #8
	mov	x0, x20
	mov	x1, x21
	mov	w2, #2
	mov	x3, x22
	bl	_read_rom
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_24
; %bb.5:
	add	x3, x19, #12
	mov	x0, x20
	mov	x1, x21
	mov	w2, #3
	bl	_read_rom
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_24
; %bb.6:
	add	x3, x19, #16
	mov	x0, x20
	mov	x1, x21
	mov	w2, #4
	bl	_read_rom
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_24
; %bb.7:
	ldr	x8, [x20, #40]
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w9, [x22]
	and	w10, w9, #0x7
Lloh11:
	adrp	x9, _SCODE_BETA@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SCODE_BETA@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w10, w8
	ccmp	w8, w9, #4, ge
	b.eq	LBB0_9
; %bb.8:
	ldr	x10, [x20, #32]
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_16
LBB0_9:
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.10:
	ldr	x8, [x20, #32]
	ldr	w8, [x8]
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_26
LBB0_12:
	str	w8, [x20]
LBB0_13:
	ldr	w9, [x25]
	cmp	w8, w9
	b.le	LBB0_16
; %bb.14:
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_read_rom
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.15:
	ldr	w8, [x20]
	sub	w8, w8, #1
	b	LBB0_12
LBB0_16:
	mov	w8, #5
	movk	w8, #49152, lsl #16
	str	w8, [x19, x23, lsl #2]
	ldr	w8, [x24]
	cmp	w8, #6
	b.lt	LBB0_24
; %bb.17:
	add	x23, x19, #20
	mov	x0, x20
	mov	x1, x21
	mov	w2, #5
	mov	x3, x23
	bl	_read_rom
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_24
; %bb.18:
	ldrsh	w8, [x23, #2]
	add	w8, w8, #5
	ldr	w9, [x24]
	cmp	w8, w9
	b.ge	LBB0_24
; %bb.19:
	mov	w24, #5
	cmp	w8, #5
	csel	w28, w8, w24, gt
	mov	w25, #24
	mov	w23, #-1
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	cmp	x28, x24
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x3, x19, x25
	add	x24, x24, #1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	_read_rom
	ldr	x8, [x27]
	add	x25, x25, #4
	cmp	x0, x8
	b.eq	LBB0_20
	b	LBB0_25
LBB0_22:
	ldr	x21, [x20, #8]
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x25
	bl	_kmemdup
	cbz	x0, LBB0_24
; %bb.23:
	mov	x23, x0
	add	x25, x24, #1
Lloh17:
	adrp	x24, _fw_device_rwsem@GOTPAGE
Lloh18:
	ldr	x24, [x24, _fw_device_rwsem@GOTPAGEOFF]
	mov	x0, x24
	bl	_down_write
	str	x23, [x20, #8]
	str	w25, [x20, #16]
	mov	x0, x24
	bl	_up_write
	mov	x0, x21
	bl	_kfree
	mov	w23, #0
	ldr	w8, [x22]
	ubfx	w8, w8, #12, #4
	str	w8, [x20, #20]
	ldr	w8, [x22]
	ubfx	w8, w8, #30, #1
	str	w8, [x20, #24]
	ldr	w8, [x22]
	lsr	w8, w8, #31
	str	w8, [x20, #28]
	b	LBB0_25
LBB0_24:
	mov	w23, #-1
LBB0_25:
	mov	x0, x19
	bl	_kfree
LBB0_26:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_READ_BIB_ROM_SIZE,4,2          ; @READ_BIB_ROM_SIZE
	.comm	_READ_BIB_STACK_SIZE,4,2        ; @READ_BIB_STACK_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SCODE_100,4,2                  ; @SCODE_100
	.comm	_RCODE_COMPLETE,8,3             ; @RCODE_COMPLETE
	.comm	_SCODE_BETA,4,2                 ; @SCODE_BETA
	.comm	_fw_device_rwsem,4,2            ; @fw_device_rwsem
	.no_dead_strip	_read_bus_info_block
.subsections_via_symbols
