	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function us5182d_probe
_us5182d_probe:                         ## @us5182d_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_clientdata
	movq	%r12, 8(%rbx)
	leaq	16(%rbx), %rdi
	callq	_mutex_init
	movq	%r15, 24(%r13)
	movq	_us5182d_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r13)
	movq	_US5182D_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	_us5182d_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 8(%r13)
	callq	_ARRAY_SIZE
	movl	%eax, 4(%r13)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	8(%rbx), %rdi
	movq	_US5182D_REG_CHIPID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r14d
	movq	_US5182D_CHIPID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_6
## %bb.2:
	movq	(%r12), %rsi
	movq	%rbx, %r14
	testq	%rsi, %rsi
	jle	LBB0_7
## %bb.3:
	movq	_us5182d_irq_thread_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	%r13, (%rsp)
	leaq	L_.str.1(%rip), %r9
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_14
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_6:
	movq	8(%rbx), %rdi
	addq	$8, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%r14d, %r14d
	cmovsl	%r14d, %ebx
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
LBB0_8:
	movq	%r13, %rdi
	callq	_us5182d_get_platform_data
	movq	%r13, %rdi
	callq	_us5182d_init
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:
	movq	%r13, %rdi
	callq	_us5182d_dark_gain_config
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:
	cmpq	$0, (%r14)
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_pm_runtime_set_active
	testl	%eax, %eax
	js	LBB0_13
LBB0_12:
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	movq	_US5182D_SLEEP_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r15, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r13, %rdi
	callq	_iio_device_register
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_15
LBB0_13:
	movl	%eax, %ebx
	movq	_US5182D_CFG0_SHUTDOWN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_us5182d_shutdown_en
	jmp	LBB0_15
LBB0_14:
	movl	%eax, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_us5182d_info,4,2               ## @us5182d_info
	.comm	_US5182D_DRV_NAME,4,2           ## @US5182D_DRV_NAME
	.comm	_us5182d_channels,4,2           ## @us5182d_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_US5182D_REG_CHIPID,4,2         ## @US5182D_REG_CHIPID
	.comm	_US5182D_CHIPID,4,2             ## @US5182D_CHIPID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to detect US5182 light chip\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_us5182d_irq_thread_handler,4,2 ## @us5182d_irq_thread_handler
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"us5182d-irq"

L_.str.2:                               ## @.str.2
	.asciz	"no valid irq found\n"

	.comm	_US5182D_SLEEP_MS,4,2           ## @US5182D_SLEEP_MS
	.comm	_US5182D_CFG0_SHUTDOWN_EN,4,2   ## @US5182D_CFG0_SHUTDOWN_EN
	.no_dead_strip	_us5182d_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function us5182d_probe
_us5182d_probe:                         ; @us5182d_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x0
	add	x20, x0, #8
	mov	x0, x20
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
	mov	x0, x22
	mov	x1, x21
	bl	_i2c_set_clientdata
	str	x22, [x19, #8]
	add	x0, x19, #16
	bl	_mutex_init
Lloh0:
	adrp	x8, _us5182d_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _us5182d_info@GOTPAGEOFF]
	stp	x8, x20, [x21, #16]
Lloh2:
	adrp	x8, _US5182D_DRV_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _US5182D_DRV_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _us5182d_channels@GOTPAGE
Lloh6:
	ldr	x9, [x9, _us5182d_channels@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	stp	w0, w8, [x21, #8]
	bl	_ARRAY_SIZE
Lloh8:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w8, w0, [x21]
	ldr	x0, [x19, #8]
Lloh11:
	adrp	x8, _US5182D_REG_CHIPID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _US5182D_REG_CHIPID@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
Lloh14:
	adrp	x8, _US5182D_CHIPID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _US5182D_CHIPID@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.2:
	ldr	x1, [x22]
	cmp	x1, #1
	b.lt	LBB0_6
; %bb.3:
Lloh17:
	adrp	x8, _us5182d_irq_thread_handler@GOTPAGE
Lloh18:
	ldr	x8, [x8, _us5182d_irq_thread_handler@GOTPAGEOFF]
Lloh19:
	adrp	x9, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
Lloh22:
	ldr	w8, [x9]
Lloh23:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh26:
	adrp	x5, l_.str.1@PAGE
Lloh27:
	add	x5, x5, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
	tbz	w0, #31, LBB0_7
	b	LBB0_13
LBB0_4:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_5:
	mov	x23, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #8
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh33:
	adrp	x8, _ENODEV@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w23, #0
	csneg	w22, w23, w8, lt
	b	LBB0_15
LBB0_6:
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_7:
	mov	x0, x21
	bl	_us5182d_get_platform_data
	mov	x0, x21
	bl	_us5182d_init
	tbnz	w0, #31, LBB0_13
; %bb.8:
	mov	x0, x21
	bl	_us5182d_dark_gain_config
	tbnz	w0, #31, LBB0_14
; %bb.9:
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_pm_runtime_set_active
	tbnz	w0, #31, LBB0_14
LBB0_11:
	mov	x0, x20
	bl	_pm_runtime_enable
Lloh38:
	adrp	x8, _US5182D_SLEEP_MS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _US5182D_SLEEP_MS@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x20
	bl	_pm_runtime_use_autosuspend
	mov	x0, x21
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_14
; %bb.12:
	mov	w22, #0
	b	LBB0_15
LBB0_13:
	mov	x22, x0
	b	LBB0_15
LBB0_14:
	mov	x22, x0
Lloh41:
	adrp	x8, _US5182D_CFG0_SHUTDOWN_EN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _US5182D_CFG0_SHUTDOWN_EN@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_us5182d_shutdown_en
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_us5182d_info,4,2               ; @us5182d_info
	.comm	_US5182D_DRV_NAME,4,2           ; @US5182D_DRV_NAME
	.comm	_us5182d_channels,4,2           ; @us5182d_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_US5182D_REG_CHIPID,4,2         ; @US5182D_REG_CHIPID
	.comm	_US5182D_CHIPID,4,2             ; @US5182D_CHIPID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to detect US5182 light chip\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_us5182d_irq_thread_handler,4,2 ; @us5182d_irq_thread_handler
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"us5182d-irq"

l_.str.2:                               ; @.str.2
	.asciz	"no valid irq found\n"

	.comm	_US5182D_SLEEP_MS,4,2           ; @US5182D_SLEEP_MS
	.comm	_US5182D_CFG0_SHUTDOWN_EN,4,2   ; @US5182D_CFG0_SHUTDOWN_EN
	.no_dead_strip	_us5182d_probe
.subsections_via_symbols
