	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsi_master_register            ## -- Begin function fsi_master_register
	.p2align	4, 0x90
_fsi_master_register:                   ## @fsi_master_register
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_mutex_init
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_master_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_ida_simple_get
	movl	%eax, 8(%r14)
	leaq	4(%r14), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_set_name
	movq	%rbx, %rdi
	callq	_device_register
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r15d
	jmp	LBB0_2
LBB0_3:
	movq	_dev_attr_rescan@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	_dev_attr_break@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_device_del
LBB0_2:
	movl	8(%r14), %esi
	movq	_master_ida@GOTPCREL(%rip), %rdi
	callq	_ida_simple_remove
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	callq	_dev_of_node
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_of_property_read_bool
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_fsi_master_scan
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_master_ida,4,2                 ## @master_ida
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fsi%d"

	.comm	_dev_attr_rescan,4,2            ## @dev_attr_rescan
	.comm	_dev_attr_break,4,2             ## @dev_attr_break
L_.str.1:                               ## @.str.1
	.asciz	"no-scan-on-init"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsi_master_register            ; -- Begin function fsi_master_register
	.p2align	2
_fsi_master_register:                   ; @fsi_master_register
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_mutex_init
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x0, _master_ida@GOTPAGE
Lloh7:
	ldr	x0, [x0, _master_ida@GOTPAGEOFF]
	mov	w1, #0
	bl	_ida_simple_get
	mov	x2, x0
	str	w0, [x19, #8]
	add	x21, x19, #4
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_set_name
	mov	x0, x21
	bl	_device_register
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	b	LBB0_5
LBB0_2:
Lloh10:
	adrp	x1, _dev_attr_rescan@GOTPAGE
Lloh11:
	ldr	x1, [x1, _dev_attr_rescan@GOTPAGEOFF]
	mov	x0, x21
	bl	_device_create_file
	cbnz	w0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x1, _dev_attr_break@GOTPAGE
Lloh13:
	ldr	x1, [x1, _dev_attr_break@GOTPAGEOFF]
	mov	x0, x21
	bl	_device_create_file
	cbz	w0, LBB0_7
LBB0_4:
	mov	x20, x0
	mov	x0, x21
	bl	_device_del
LBB0_5:
	ldr	w1, [x19, #8]
Lloh14:
	adrp	x0, _master_ida@GOTPAGE
Lloh15:
	ldr	x0, [x0, _master_ida@GOTPAGEOFF]
	bl	_ida_simple_remove
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x21
	bl	_dev_of_node
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_property_read_bool
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_fsi_master_scan
	mov	x0, x19
	bl	_mutex_unlock
LBB0_9:
	mov	w20, #0
	b	LBB0_6
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_master_ida,4,2                 ; @master_ida
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fsi%d"

	.comm	_dev_attr_rescan,4,2            ; @dev_attr_rescan
	.comm	_dev_attr_break,4,2             ; @dev_attr_break
l_.str.1:                               ; @.str.1
	.asciz	"no-scan-on-init"

.subsections_via_symbols
