	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function us5182d_setup_prox
_us5182d_setup_prox:                    ## @us5182d_setup_prox
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_iio_priv
	movq	_IIO_EV_DIR_FALLING@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_US5182D_REG_PXL_TH@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_5
## %bb.3:
	movq	_US5182D_REG_PXH_TH@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rax), %edi
	movl	(%rcx), %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i2c_smbus_write_word_data      ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_EV_DIR_FALLING,4,2         ## @IIO_EV_DIR_FALLING
	.comm	_US5182D_REG_PXL_TH,4,2         ## @US5182D_REG_PXL_TH
	.comm	_IIO_EV_DIR_RISING,4,2          ## @IIO_EV_DIR_RISING
	.comm	_US5182D_REG_PXH_TH,4,2         ## @US5182D_REG_PXH_TH
	.no_dead_strip	_us5182d_setup_prox
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function us5182d_setup_prox
_us5182d_setup_prox:                    ; @us5182d_setup_prox
	.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, x2
	mov	x20, x1
	bl	_iio_priv
Lloh0:
	adrp	x8, _IIO_EV_DIR_FALLING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_EV_DIR_FALLING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _US5182D_REG_PXL_TH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _US5182D_REG_PXL_TH@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _IIO_EV_DIR_RISING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _US5182D_REG_PXH_TH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _US5182D_REG_PXH_TH@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x0]
	ldr	w1, [x8]
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2c_smbus_write_word_data
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_EV_DIR_FALLING,4,2         ; @IIO_EV_DIR_FALLING
	.comm	_US5182D_REG_PXL_TH,4,2         ; @US5182D_REG_PXL_TH
	.comm	_IIO_EV_DIR_RISING,4,2          ; @IIO_EV_DIR_RISING
	.comm	_US5182D_REG_PXH_TH,4,2         ; @US5182D_REG_PXH_TH
	.no_dead_strip	_us5182d_setup_prox
.subsections_via_symbols
