	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hub_master_probe
_hub_master_probe:                      ## @hub_master_probe
	.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	%rdi, %r12
	callq	_to_fsi_dev
	movq	%rax, %r14
	movq	_FSI_MVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_fsi_device_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	-44(%rbp), %edi
	callq	_be32_to_cpu
	movzbl	%ah, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_dev_dbg
	movl	(%r14), %edi
	movq	_FSI_HUB_LINK_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FSI_HUB_LINK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %r13d
	imull	%ebx, %edx
	callq	_fsi_slave_claim_range
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_8
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r15
	movq	_FSI_HUB_LINK_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	movq	_FSI_HUB_LINK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%r13d, %eax
	movl	%eax, (%r15)
	movq	%r14, 48(%r15)
	leaq	8(%r15), %rbx
	movq	%r12, 24(%r15)
	movq	_hub_master_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	%r12, %rdi
	callq	_dev_of_node
	movl	%eax, %edi
	callq	_of_node_get
	movl	%eax, 16(%r15)
	movl	%r13d, 8(%r15)
	movq	_hub_master_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	movq	_hub_master_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_hub_master_break@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_hub_master_link_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	movq	%r15, %rdi
	callq	_hub_master_init
	movq	%rbx, %rdi
	callq	_fsi_master_register
	movq	_FSI_HUB_LINK_OFFSET@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	movq	_FSI_HUB_LINK_SIZE@GOTPCREL(%rip), %rax
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.7:
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_get_device
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_FSI_HUB_LINK_OFFSET@GOTPCREL(%rip), %rcx
	movq	_FSI_HUB_LINK_SIZE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%r14), %edi
	movl	(%rcx), %esi
	imull	(%rax), %r13d
	movl	%r13d, %edx
	callq	_fsi_slave_release_range
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSI_MVER,4,2                   ## @FSI_MVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hub version %08x (%d links)\n"

	.comm	_FSI_HUB_LINK_OFFSET,4,2        ## @FSI_HUB_LINK_OFFSET
	.comm	_FSI_HUB_LINK_SIZE,4,2          ## @FSI_HUB_LINK_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"can't claim slave address range for links"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_hub_master_release,4,2         ## @hub_master_release
	.comm	_hub_master_read,4,2            ## @hub_master_read
	.comm	_hub_master_write,4,2           ## @hub_master_write
	.comm	_hub_master_break,4,2           ## @hub_master_break
	.comm	_hub_master_link_enable,4,2     ## @hub_master_link_enable
	.no_dead_strip	_hub_master_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hub_master_probe
_hub_master_probe:                      ; @hub_master_probe
	.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	_to_fsi_dev
	mov	x19, x0
Lloh0:
	adrp	x8, _FSI_MVER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSI_MVER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #4
	bl	_fsi_device_read
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_be32_to_cpu
	mov	x2, x0
	ubfx	w21, w0, #8, #8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_dev_dbg
Lloh5:
	adrp	x25, _FSI_HUB_LINK_OFFSET@GOTPAGE
Lloh6:
	ldr	x25, [x25, _FSI_HUB_LINK_OFFSET@GOTPAGEOFF]
	ldr	w0, [x19]
	ldr	w1, [x25]
Lloh7:
	adrp	x26, _FSI_HUB_LINK_SIZE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _FSI_HUB_LINK_SIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	mul	w2, w8, w21
	bl	_fsi_slave_claim_range
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_8
LBB0_3:
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
	ldr	w8, [x25]
	str	w8, [x0, #56]
	ldr	w8, [x26]
	mul	w8, w8, w21
	str	w8, [x0]
	str	x19, [x0, #48]
	str	x20, [x0, #24]
Lloh14:
	adrp	x8, _hub_master_release@GOTPAGE
Lloh15:
	ldr	x8, [x8, _hub_master_release@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x0, #20]
	mov	x0, x20
	bl	_dev_of_node
	bl	_of_node_get
	mov	x23, x22
	str	w0, [x23, #16]!
	mov	x24, x22
	str	w21, [x24, #8]!
Lloh17:
	adrp	x8, _hub_master_read@GOTPAGE
Lloh18:
	ldr	x8, [x8, _hub_master_read@GOTPAGEOFF]
Lloh19:
	adrp	x9, _hub_master_write@GOTPAGE
Lloh20:
	ldr	x9, [x9, _hub_master_write@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #40]
Lloh23:
	adrp	x8, _hub_master_break@GOTPAGE
Lloh24:
	ldr	x8, [x8, _hub_master_break@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _hub_master_link_enable@GOTPAGE
Lloh27:
	ldr	x9, [x9, _hub_master_link_enable@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #32]
	mov	x0, x20
	mov	x1, x22
	bl	_dev_set_drvdata
	mov	x0, x22
	bl	_hub_master_init
	mov	x0, x24
	bl	_fsi_master_register
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x23
	bl	_get_device
	b	LBB0_8
LBB0_6:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	ldr	w0, [x19]
	ldr	w1, [x25]
	ldr	w8, [x26]
	mul	w2, w8, w21
	bl	_fsi_slave_release_range
LBB0_8:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_FSI_MVER,4,2                   ; @FSI_MVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hub version %08x (%d links)\n"

	.comm	_FSI_HUB_LINK_OFFSET,4,2        ; @FSI_HUB_LINK_OFFSET
	.comm	_FSI_HUB_LINK_SIZE,4,2          ; @FSI_HUB_LINK_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"can't claim slave address range for links"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_hub_master_release,4,2         ; @hub_master_release
	.comm	_hub_master_read,4,2            ; @hub_master_read
	.comm	_hub_master_write,4,2           ; @hub_master_write
	.comm	_hub_master_break,4,2           ; @hub_master_break
	.comm	_hub_master_link_enable,4,2     ; @hub_master_link_enable
	.no_dead_strip	_hub_master_probe
.subsections_via_symbols
