	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3533_als_probe
_lm3533_als_probe:                      ## @lm3533_als_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, %r13
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	8(%r13), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	_lm3533_als_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	_lm3533_als_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, 12(%r14)
	movq	%r13, %rdi
	callq	_dev_name
	movl	%eax, 8(%r14)
	movl	(%r13), %eax
	movl	%eax, 4(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%rbx, 24(%rax)
	movq	%r13, 16(%rax)
	movq	(%rbx), %rax
	movq	%rax, (%r12)
	leaq	12(%r12), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	8(%r12), %rdi
	callq	_mutex_init
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	cmpq	$0, (%r12)
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_lm3533_als_setup_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
LBB0_9:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_lm3533_als_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movq	%r12, %rdi
	callq	_lm3533_als_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movq	%r14, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_lm3533_als_disable
LBB0_14:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	movq	%r14, %rsi
	callq	_free_irq
	jmp	LBB0_16
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no platform data\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_lm3533_als_info,4,2            ## @lm3533_als_info
	.comm	_lm3533_als_channels,4,2        ## @lm3533_als_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
L_.str.1:                               ## @.str.1
	.asciz	"failed to register ALS\n"

	.no_dead_strip	_lm3533_als_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3533_als_probe
_lm3533_als_probe:                      ; @lm3533_als_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	x19, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	cbz	x0, LBB0_12
; %bb.1:
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_11
; %bb.2:
	mov	x23, x0
	mov	x0, x19
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_15
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x8, _lm3533_als_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lm3533_als_info@GOTPAGEOFF]
	str	x8, [x0, #24]
Lloh2:
	adrp	x8, _lm3533_als_channels@GOTPAGE
Lloh3:
	ldr	x8, [x8, _lm3533_als_channels@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	str	w0, [x20, #16]
	bl	_ARRAY_SIZE
	str	w0, [x20, #12]
	mov	x0, x19
	bl	_dev_name
	str	w0, [x20, #8]
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	mov	x0, x20
	bl	_iio_priv
	mov	x22, x0
	stp	x19, x23, [x0, #16]
	ldr	x8, [x23]
	str	x8, [x0], #12
	mov	w1, #0
	bl	_atomic_set
	add	x0, x22, #8
	bl	_mutex_init
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x20
	bl	_lm3533_als_setup_irq
	mov	x23, x0
	cbnz	w0, LBB0_14
LBB0_5:
	mov	x0, x22
	mov	x1, x21
	bl	_lm3533_als_setup
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.6:
	mov	x0, x22
	bl	_lm3533_als_enable
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_iio_device_register
	mov	x23, x0
	cbz	w0, LBB0_14
; %bb.8:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x22
	bl	_lm3533_als_disable
LBB0_9:
	ldr	x0, [x22]
	cbz	x0, LBB0_14
; %bb.10:
	mov	x1, x20
	bl	_free_irq
	b	LBB0_14
LBB0_11:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_12:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_14:
	mov	x0, x23
	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
LBB0_15:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no platform data\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_lm3533_als_info,4,2            ; @lm3533_als_info
	.comm	_lm3533_als_channels,4,2        ; @lm3533_als_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
l_.str.1:                               ; @.str.1
	.asciz	"failed to register ALS\n"

	.no_dead_strip	_lm3533_als_probe
.subsections_via_symbols
