	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gs_probe
_gs_probe:                              ## @gs_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$16, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, 16(%rax)
	movq	%rax, %r15
	addq	$12, %r15
	movq	_SPI_MODE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movabsq	$42949677254967295, %rax        ## imm = 0x989680FFFFFFFF
	movq	%rax, (%rbx)
	movl	$16, 8(%rbx)
	movq	%rbx, %rdi
	callq	_spi_setup
	movl	%eax, %r12d
	movq	_gs_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_spi_subdev_init
	movq	_reg_fmt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	$0, (%r14)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$768, %edx                      ## imm = 0x300
	callq	_gs_write_register
	movl	%r12d, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SPI_MODE_0,4,2                 ## @SPI_MODE_0
	.comm	_gs_ops,4,2                     ## @gs_ops
	.comm	_reg_fmt,8,3                    ## @reg_fmt
	.no_dead_strip	_gs_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function gs_probe
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	10000000                        ; 0x989680
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_gs_probe:                              ; @gs_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
	add	x0, x0, #16
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #16]
	add	x21, x0, #12
Lloh3:
	adrp	x8, _SPI_MODE_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_MODE_0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	mov	w9, #16
	stp	w9, w8, [x19, #8]
	mov	x0, x19
	bl	_spi_setup
	mov	x22, x0
Lloh8:
	adrp	x2, _gs_ops@GOTPAGE
Lloh9:
	ldr	x2, [x2, _gs_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	bl	_v4l2_spi_subdev_init
Lloh10:
	adrp	x8, _reg_fmt@GOTPAGE
Lloh11:
	ldr	x8, [x8, _reg_fmt@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x20, #8]
	str	xzr, [x20]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #768
	bl	_gs_write_register
	mov	x0, x22
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SPI_MODE_0,4,2                 ; @SPI_MODE_0
	.comm	_gs_ops,4,2                     ; @gs_ops
	.comm	_reg_fmt,8,3                    ; @reg_fmt
	.no_dead_strip	_gs_probe
.subsections_via_symbols
