	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sgp_probe
_sgp_probe:                             ## @sgp_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_sgp_dt_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmoveq	%rbx, %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	%r13, (%r12)
	movq	_sgp_crc8_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SGP_CRC8_POLYNOMIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_crc8_populate_msb
	leaq	28(%r12), %rdi
	callq	_mutex_init
	movq	_SGP_CMD_GET_FEATURE_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%r12), %rdx
	movq	_SGP_CMD_DURATION_US@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_sgp_read_cmd
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	16(%r12), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	movl	%eax, 24(%r12)
	movq	%r12, %rdi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_sgp_check_compat
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	%r14, 24(%r15)
	movq	_sgp_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_sgp_devices@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax,%r13,8), %ecx
	movl	%ecx, 4(%r15)
	movl	(%rax,%r13,8), %eax
	movl	%eax, (%r15)
	movq	%r12, %rdi
	callq	_sgp_init
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_iio_device_register
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_sgp_iaq_threadfn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rsi
	callq	_kthread_run
	movl	%eax, 8(%r12)
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sgp_dt_ids,4,2                 ## @sgp_dt_ids
	.comm	_sgp_crc8_table,4,2             ## @sgp_crc8_table
	.comm	_SGP_CRC8_POLYNOMIAL,4,2        ## @SGP_CRC8_POLYNOMIAL
	.comm	_SGP_CMD_GET_FEATURE_SET,4,2    ## @SGP_CMD_GET_FEATURE_SET
	.comm	_SGP_CMD_DURATION_US,4,2        ## @SGP_CMD_DURATION_US
	.comm	_sgp_info,4,2                   ## @sgp_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_sgp_devices,8,3                ## @sgp_devices
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register iio device\n"

	.comm	_sgp_iaq_threadfn,4,2           ## @sgp_iaq_threadfn
L_.str.1:                               ## @.str.1
	.asciz	"%s-iaq"

	.no_dead_strip	_sgp_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sgp_probe
_sgp_probe:                             ; @sgp_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x24, x0
	add	x19, x0, #4
	mov	x0, x19
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _sgp_dt_ids@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sgp_dt_ids@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cmp	x0, #0
	csel	x8, x22, x0, eq
	ldr	x23, [x8]
	mov	x0, x20
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x24
	mov	x1, x20
	bl	_i2c_set_clientdata
	mov	x25, x21
	str	x24, [x25], #16
Lloh3:
	adrp	x8, _sgp_crc8_table@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sgp_crc8_table@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SGP_CRC8_POLYNOMIAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SGP_CRC8_POLYNOMIAL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_crc8_populate_msb
	add	x0, x21, #28
	bl	_mutex_init
Lloh9:
	adrp	x8, _SGP_CMD_GET_FEATURE_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SGP_CMD_GET_FEATURE_SET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _SGP_CMD_DURATION_US@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SGP_CMD_DURATION_US@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x2, x25
	mov	w3, #1
	bl	_sgp_read_cmd
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_be16_to_cpu
	str	w0, [x21, #24]
	mov	x0, x21
	mov	x1, x23
	bl	_sgp_check_compat
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.3:
Lloh15:
	adrp	x8, _sgp_info@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sgp_info@GOTPAGEOFF]
	stp	x8, x19, [x20, #16]
	ldr	w8, [x22, #8]
Lloh17:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
Lloh20:
	adrp	x8, _sgp_devices@GOTPAGE
Lloh21:
	ldr	x8, [x8, _sgp_devices@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	d0, [x8, x23, lsl #3]
	str	d0, [x20]
	mov	x0, x21
	bl	_sgp_init
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_device_register
	mov	x24, x0
	cbz	w0, LBB0_7
; %bb.4:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
LBB0_5:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_8
LBB0_6:
	mov	x24, x0
	b	LBB0_8
LBB0_7:
Lloh28:
	adrp	x8, _sgp_iaq_threadfn@GOTPAGE
Lloh29:
	ldr	x8, [x8, _sgp_iaq_threadfn@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	x8, [x21]
	ldr	w3, [x8]
Lloh31:
	adrp	x2, l_.str.1@PAGE
Lloh32:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_kthread_run
	str	w0, [x21, #8]
LBB0_8:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sgp_dt_ids,4,2                 ; @sgp_dt_ids
	.comm	_sgp_crc8_table,4,2             ; @sgp_crc8_table
	.comm	_SGP_CRC8_POLYNOMIAL,4,2        ; @SGP_CRC8_POLYNOMIAL
	.comm	_SGP_CMD_GET_FEATURE_SET,4,2    ; @SGP_CMD_GET_FEATURE_SET
	.comm	_SGP_CMD_DURATION_US,4,2        ; @SGP_CMD_DURATION_US
	.comm	_sgp_info,4,2                   ; @sgp_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_sgp_devices,8,3                ; @sgp_devices
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register iio device\n"

	.comm	_sgp_iaq_threadfn,4,2           ; @sgp_iaq_threadfn
l_.str.1:                               ; @.str.1
	.asciz	"%s-iaq"

	.no_dead_strip	_sgp_probe
.subsections_via_symbols
