	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isl29028_enable_proximity
_isl29028_enable_proximity:             ## @isl29028_enable_proximity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	movl	4(%rdi), %esi
	callq	_isl29028_set_proxim_sampling
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	8(%rbx), %edi
	movq	_ISL29028_REG_CONFIGURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ISL29028_CONF_PROX_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ISL29028_CONF_PROX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_isl29028_find_prox_sleep_index
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_isl29028_prox_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %edi
	callq	_msleep
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISL29028_REG_CONFIGURE,4,2     ## @ISL29028_REG_CONFIGURE
	.comm	_ISL29028_CONF_PROX_EN_MASK,4,2 ## @ISL29028_CONF_PROX_EN_MASK
	.comm	_ISL29028_CONF_PROX_EN,4,2      ## @ISL29028_CONF_PROX_EN
	.comm	_isl29028_prox_data,8,3         ## @isl29028_prox_data
	.no_dead_strip	_isl29028_enable_proximity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isl29028_enable_proximity
_isl29028_enable_proximity:             ; @isl29028_enable_proximity
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w2, w1, [x0]
	bl	_isl29028_set_proxim_sampling
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _ISL29028_REG_CONFIGURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISL29028_REG_CONFIGURE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ISL29028_CONF_PROX_EN_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISL29028_CONF_PROX_EN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _ISL29028_CONF_PROX_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISL29028_CONF_PROX_EN@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldp	w1, w0, [x19]
	bl	_isl29028_find_prox_sleep_index
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _isl29028_prox_data@GOTPAGE
Lloh10:
	ldr	x8, [x8, _isl29028_prox_data@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w0, [x8, w0, uxtw #2]
	bl	_msleep
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ISL29028_REG_CONFIGURE,4,2     ; @ISL29028_REG_CONFIGURE
	.comm	_ISL29028_CONF_PROX_EN_MASK,4,2 ; @ISL29028_CONF_PROX_EN_MASK
	.comm	_ISL29028_CONF_PROX_EN,4,2      ; @ISL29028_CONF_PROX_EN
	.comm	_isl29028_prox_data,8,3         ; @isl29028_prox_data
	.no_dead_strip	_isl29028_enable_proximity
.subsections_via_symbols
