	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpa2326_probe_spi
_zpa2326_probe_spi:                     ## @zpa2326_probe_spi
	.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, %rbx
	movq	_zpa2326_regmap_spi_config@GOTPCREL(%rip), %rsi
	callq	_devm_regmap_init_spi
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	addq	$8, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_SPI_MODE_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	12(%rbx), %edi
	movl	$1000000, %esi                  ## imm = 0xF4240
	callq	_min
	movl	%eax, 12(%rbx)
	movl	$8, (%rbx)
	movq	%rbx, %rdi
	callq	_spi_setup
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	leaq	8(%rbx), %r15
	movq	%rbx, %rdi
	callq	_spi_get_device_id
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	_ZPA2326_DEVICE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zpa2326_probe                  ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_zpa2326_regmap_spi_config,4,2  ## @zpa2326_regmap_spi_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to init registers map"

	.comm	_SPI_MODE_3,4,2                 ## @SPI_MODE_3
	.comm	_ZPA2326_DEVICE_ID,4,2          ## @ZPA2326_DEVICE_ID
	.no_dead_strip	_zpa2326_probe_spi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zpa2326_probe_spi
_zpa2326_probe_spi:                     ; @zpa2326_probe_spi
	.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	x20, x0
Lloh0:
	adrp	x1, _zpa2326_regmap_spi_config@GOTPAGE
Lloh1:
	ldr	x1, [x1, _zpa2326_regmap_spi_config@GOTPAGEOFF]
	bl	_devm_regmap_init_spi
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x20, #8
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	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
	b	_PTR_ERR
LBB0_2:
Lloh4:
	adrp	x8, _SPI_MODE_3@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SPI_MODE_3@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	ldr	w0, [x20, #12]
	mov	w1, #16960
	movk	w1, #15, lsl #16
	bl	_min
	str	w0, [x20, #12]
	mov	w8, #8
	str	w8, [x20]
	mov	x0, x20
	bl	_spi_setup
	tbnz	w0, #31, LBB0_4
; %bb.3:
	add	x21, x20, #8
	mov	x0, x20
	bl	_spi_get_device_id
	ldr	w1, [x0]
	ldr	w2, [x20, #4]
Lloh7:
	adrp	x8, _ZPA2326_DEVICE_ID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ZPA2326_DEVICE_ID@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x4, x19
	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
	b	_zpa2326_probe
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_zpa2326_regmap_spi_config,4,2  ; @zpa2326_regmap_spi_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to init registers map"

	.comm	_SPI_MODE_3,4,2                 ; @SPI_MODE_3
	.comm	_ZPA2326_DEVICE_ID,4,2          ; @ZPA2326_DEVICE_ID
	.no_dead_strip	_zpa2326_probe_spi
.subsections_via_symbols
