	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsi_master_gpio_probe
_fsi_master_gpio_probe:                 ## @fsi_master_gpio_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$128, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 120(%rax)
	movq	%r14, 16(%rax)
	movq	%r14, %rdi
	callq	_dev_of_node
	movl	%eax, %edi
	callq	_of_node_get
	movl	%eax, 12(%r15)
	movq	_fsi_master_gpio_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_LAST_ADDR_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%r15)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_gpiod_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_6:
	movq	%rbx, 104(%r15)
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_gpiod_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
LBB0_8:
	movq	%rbx, 96(%r15)
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_gpiod_get_optional
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_4
LBB0_10:
	movq	%rbx, 88(%r15)
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_gpiod_get_optional
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_4
LBB0_12:
	movq	%rbx, 80(%r15)
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_gpiod_get_optional
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.9(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_5:
	movq	%r15, %rdi
	callq	_kfree
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%rbx, 72(%r15)
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_property_present
	movl	%eax, 68(%r15)
	movq	_FSI_SEND_DELAY_CLOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r15)
	movq	_FSI_ECHO_DELAY_CLOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r15)
	movl	$1, (%r15)
	movq	_FSI_MASTER_FLAG_SWCLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	_fsi_master_gpio_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	movq	_fsi_master_gpio_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_fsi_master_gpio_term@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_fsi_master_gpio_break@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	_fsi_master_gpio_link_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	_fsi_master_gpio_link_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	leaq	56(%r15), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	callq	_fsi_master_gpio_init
	movq	_dev_attr_external_mode@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.15:
	movq	%r15, %rdi
	callq	_fsi_master_register
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %ebx
	addq	$8, %r15
	movq	_dev_attr_external_mode@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
	movq	%r15, %rdi
	callq	_put_device
	jmp	LBB0_18
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fsi_master_gpio_release,4,2    ## @fsi_master_gpio_release
	.comm	_LAST_ADDR_INVALID,4,2          ## @LAST_ADDR_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get clock gpio\n"

L_.str.2:                               ## @.str.2
	.asciz	"data"

L_.str.3:                               ## @.str.3
	.asciz	"failed to get data gpio\n"

L_.str.4:                               ## @.str.4
	.asciz	"trans"

L_.str.5:                               ## @.str.5
	.asciz	"failed to get trans gpio\n"

L_.str.6:                               ## @.str.6
	.asciz	"enable"

L_.str.7:                               ## @.str.7
	.asciz	"failed to get enable gpio\n"

L_.str.8:                               ## @.str.8
	.asciz	"mux"

L_.str.9:                               ## @.str.9
	.asciz	"failed to get mux gpio\n"

L_.str.10:                              ## @.str.10
	.asciz	"no-gpio-delays"

	.comm	_FSI_SEND_DELAY_CLOCKS,4,2      ## @FSI_SEND_DELAY_CLOCKS
	.comm	_FSI_ECHO_DELAY_CLOCKS,4,2      ## @FSI_ECHO_DELAY_CLOCKS
	.comm	_FSI_MASTER_FLAG_SWCLOCK,4,2    ## @FSI_MASTER_FLAG_SWCLOCK
	.comm	_fsi_master_gpio_read,4,2       ## @fsi_master_gpio_read
	.comm	_fsi_master_gpio_write,4,2      ## @fsi_master_gpio_write
	.comm	_fsi_master_gpio_term,4,2       ## @fsi_master_gpio_term
	.comm	_fsi_master_gpio_break,4,2      ## @fsi_master_gpio_break
	.comm	_fsi_master_gpio_link_enable,4,2 ## @fsi_master_gpio_link_enable
	.comm	_fsi_master_gpio_link_config,4,2 ## @fsi_master_gpio_link_config
	.comm	_dev_attr_external_mode,4,2     ## @dev_attr_external_mode
	.no_dead_strip	_fsi_master_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsi_master_gpio_probe
_fsi_master_gpio_probe:                 ; @fsi_master_gpio_probe
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #128
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #120]
	str	x19, [x0, #16]
	mov	x0, x19
	bl	_dev_of_node
	bl	_of_node_get
Lloh3:
	adrp	x8, _fsi_master_gpio_release@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fsi_master_gpio_release@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x21, x20
	stp	w8, w0, [x21, #8]!
Lloh6:
	adrp	x8, _LAST_ADDR_INVALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LAST_ADDR_INVALID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x21, #104]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_devm_gpiod_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_3:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_4:
	str	x22, [x20, #104]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_devm_gpiod_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_6:
	str	x22, [x20, #96]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_devm_gpiod_get_optional
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_8:
	str	x22, [x20, #88]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_devm_gpiod_get_optional
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_12
LBB0_10:
	str	x22, [x20, #80]
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_devm_gpiod_get_optional
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.11:
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_dev_err
	mov	x0, x22
	bl	_PTR_ERR
	mov	x22, x0
LBB0_13:
	mov	x0, x20
	bl	_kfree
LBB0_14:
	mov	x0, x22
	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_15:
	str	x22, [x20, #72]
Lloh32:
	adrp	x1, l_.str.10@PAGE
Lloh33:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_device_property_present
	str	w0, [x20, #68]
Lloh34:
	adrp	x8, _FSI_SEND_DELAY_CLOCKS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FSI_SEND_DELAY_CLOCKS@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _FSI_ECHO_DELAY_CLOCKS@GOTPAGE
Lloh38:
	ldr	x9, [x9, _FSI_ECHO_DELAY_CLOCKS@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #60]
	mov	w8, #1
	str	w8, [x20]
Lloh40:
	adrp	x8, _FSI_MASTER_FLAG_SWCLOCK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FSI_MASTER_FLAG_SWCLOCK@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [x20, #48]
Lloh43:
	adrp	x8, _fsi_master_gpio_read@GOTPAGE
Lloh44:
	ldr	x8, [x8, _fsi_master_gpio_read@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _fsi_master_gpio_write@GOTPAGE
Lloh47:
	ldr	x9, [x9, _fsi_master_gpio_write@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #40]
Lloh49:
	adrp	x8, _fsi_master_gpio_term@GOTPAGE
Lloh50:
	ldr	x8, [x8, _fsi_master_gpio_term@GOTPAGEOFF]
Lloh51:
	adrp	x9, _fsi_master_gpio_break@GOTPAGE
Lloh52:
	ldr	x9, [x9, _fsi_master_gpio_break@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
Lloh55:
	adrp	x8, _fsi_master_gpio_link_enable@GOTPAGE
Lloh56:
	ldr	x8, [x8, _fsi_master_gpio_link_enable@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
Lloh58:
	adrp	x9, _fsi_master_gpio_link_config@GOTPAGE
Lloh59:
	ldr	x9, [x9, _fsi_master_gpio_link_config@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	add	x0, x20, #56
	bl	_mutex_init
	mov	x0, x20
	bl	_fsi_master_gpio_init
Lloh61:
	adrp	x1, _dev_attr_external_mode@GOTPAGE
Lloh62:
	ldr	x1, [x1, _dev_attr_external_mode@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.16:
	mov	x0, x20
	bl	_fsi_master_register
	mov	x22, x0
	cbz	w0, LBB0_14
; %bb.17:
Lloh63:
	adrp	x1, _dev_attr_external_mode@GOTPAGE
Lloh64:
	ldr	x1, [x1, _dev_attr_external_mode@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
	mov	x0, x21
	bl	_put_device
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh53
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fsi_master_gpio_release,4,2    ; @fsi_master_gpio_release
	.comm	_LAST_ADDR_INVALID,4,2          ; @LAST_ADDR_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get clock gpio\n"

l_.str.2:                               ; @.str.2
	.asciz	"data"

l_.str.3:                               ; @.str.3
	.asciz	"failed to get data gpio\n"

l_.str.4:                               ; @.str.4
	.asciz	"trans"

l_.str.5:                               ; @.str.5
	.asciz	"failed to get trans gpio\n"

l_.str.6:                               ; @.str.6
	.asciz	"enable"

l_.str.7:                               ; @.str.7
	.asciz	"failed to get enable gpio\n"

l_.str.8:                               ; @.str.8
	.asciz	"mux"

l_.str.9:                               ; @.str.9
	.asciz	"failed to get mux gpio\n"

l_.str.10:                              ; @.str.10
	.asciz	"no-gpio-delays"

	.comm	_FSI_SEND_DELAY_CLOCKS,4,2      ; @FSI_SEND_DELAY_CLOCKS
	.comm	_FSI_ECHO_DELAY_CLOCKS,4,2      ; @FSI_ECHO_DELAY_CLOCKS
	.comm	_FSI_MASTER_FLAG_SWCLOCK,4,2    ; @FSI_MASTER_FLAG_SWCLOCK
	.comm	_fsi_master_gpio_read,4,2       ; @fsi_master_gpio_read
	.comm	_fsi_master_gpio_write,4,2      ; @fsi_master_gpio_write
	.comm	_fsi_master_gpio_term,4,2       ; @fsi_master_gpio_term
	.comm	_fsi_master_gpio_break,4,2      ; @fsi_master_gpio_break
	.comm	_fsi_master_gpio_link_enable,4,2 ; @fsi_master_gpio_link_enable
	.comm	_fsi_master_gpio_link_config,4,2 ; @fsi_master_gpio_link_config
	.comm	_dev_attr_external_mode,4,2     ; @dev_attr_external_mode
	.no_dead_strip	_fsi_master_gpio_probe
.subsections_via_symbols
