	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssp_gyro_probe
_ssp_gyro_probe:                        ## @ssp_gyro_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
	movl	$8, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	_ssp_process_gyro_data@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_SSP_GYROSCOPE_SENSOR@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	%ecx, (%rax)
	movq	_ssp_gyro_name@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r14, 32(%rbx)
	movq	_ssp_gyro_iio_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_INDIO_BUFFER_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_ssp_gyro_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 12(%rbx)
	movq	_ssp_gyro_scan_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_devm_iio_kfifo_allocate
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_iio_device_attach_buffer
	movq	_ssp_gyro_buffer_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_devm_iio_device_register
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_ssp_register_consumer
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ssp_process_gyro_data,4,2      ## @ssp_process_gyro_data
	.comm	_SSP_GYROSCOPE_SENSOR,4,2       ## @SSP_GYROSCOPE_SENSOR
	.comm	_ssp_gyro_name,4,2              ## @ssp_gyro_name
	.comm	_ssp_gyro_iio_info,4,2          ## @ssp_gyro_iio_info
	.comm	_INDIO_BUFFER_SOFTWARE,4,2      ## @INDIO_BUFFER_SOFTWARE
	.comm	_ssp_gyro_channels,4,2          ## @ssp_gyro_channels
	.comm	_ssp_gyro_scan_mask,4,2         ## @ssp_gyro_scan_mask
	.comm	_ssp_gyro_buffer_ops,4,2        ## @ssp_gyro_buffer_ops
	.no_dead_strip	_ssp_gyro_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssp_gyro_probe
_ssp_gyro_probe:                        ; @ssp_gyro_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	x20, x0
	mov	w1, #8
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
Lloh0:
	adrp	x8, _ssp_process_gyro_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ssp_process_gyro_data@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _SSP_GYROSCOPE_SENSOR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SSP_GYROSCOPE_SENSOR@GOTPAGEOFF]
	ldr	w9, [x21]
	stp	w9, w8, [x0]
Lloh5:
	adrp	x8, _ssp_gyro_name@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ssp_gyro_name@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh8:
	adrp	x8, _ssp_gyro_iio_info@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ssp_gyro_iio_info@GOTPAGEOFF]
	stp	x8, x20, [x19, #24]
Lloh10:
	adrp	x8, _INDIO_BUFFER_SOFTWARE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INDIO_BUFFER_SOFTWARE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _ssp_gyro_channels@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ssp_gyro_channels@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	stp	w0, w8, [x19, #16]
	bl	_ARRAY_SIZE
Lloh16:
	adrp	x8, _ssp_gyro_scan_mask@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ssp_gyro_scan_mask@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #8]
	mov	x0, x20
	bl	_devm_iio_kfifo_allocate
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x0
	mov	x0, x19
	bl	_iio_device_attach_buffer
Lloh19:
	adrp	x8, _ssp_gyro_buffer_ops@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ssp_gyro_buffer_ops@GOTPAGEOFF]
	str	x8, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	mov	x1, x19
	bl	_devm_iio_device_register
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ssp_register_consumer
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ssp_process_gyro_data,4,2      ; @ssp_process_gyro_data
	.comm	_SSP_GYROSCOPE_SENSOR,4,2       ; @SSP_GYROSCOPE_SENSOR
	.comm	_ssp_gyro_name,4,2              ; @ssp_gyro_name
	.comm	_ssp_gyro_iio_info,4,2          ; @ssp_gyro_iio_info
	.comm	_INDIO_BUFFER_SOFTWARE,4,2      ; @INDIO_BUFFER_SOFTWARE
	.comm	_ssp_gyro_channels,4,2          ; @ssp_gyro_channels
	.comm	_ssp_gyro_scan_mask,4,2         ; @ssp_gyro_scan_mask
	.comm	_ssp_gyro_buffer_ops,4,2        ; @ssp_gyro_buffer_ops
	.no_dead_strip	_ssp_gyro_probe
.subsections_via_symbols
