	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmc150_magn_data_rdy_trigger_set_state
_bmc150_magn_data_rdy_trigger_set_state: ## @bmc150_magn_data_rdy_trigger_set_state
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_iio_trigger_get_drvdata
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	xorl	%r12d, %r12d
	cmpl	%r15d, (%rbx)
	je	LBB0_5
## %bb.1:
	movl	8(%rbx), %edi
	movq	_BMC150_MAGN_REG_INT_DRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BMC150_MAGN_MASK_DRDY_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BMC150_MAGN_SHIFT_DRDY_EN@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r15d, %eax
	shll	%cl, %eax
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	%r15d, (%rbx)
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_bmc150_magn_reset_intr
	testl	%eax, %eax
	jns	LBB0_5
LBB0_4:
	movl	%eax, %r12d
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMC150_MAGN_REG_INT_DRDY,4,2   ## @BMC150_MAGN_REG_INT_DRDY
	.comm	_BMC150_MAGN_MASK_DRDY_EN,4,2   ## @BMC150_MAGN_MASK_DRDY_EN
	.comm	_BMC150_MAGN_SHIFT_DRDY_EN,4,2  ## @BMC150_MAGN_SHIFT_DRDY_EN
	.no_dead_strip	_bmc150_magn_data_rdy_trigger_set_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmc150_magn_data_rdy_trigger_set_state
_bmc150_magn_data_rdy_trigger_set_state: ; @bmc150_magn_data_rdy_trigger_set_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	bl	_iio_trigger_get_drvdata
	bl	_iio_priv
	mov	x21, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x21]
	cmp	w8, w20
	b.eq	LBB0_4
; %bb.1:
	ldr	w0, [x21, #8]
Lloh0:
	adrp	x8, _BMC150_MAGN_REG_INT_DRDY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMC150_MAGN_REG_INT_DRDY@GOTPAGEOFF]
Lloh2:
	adrp	x9, _BMC150_MAGN_MASK_DRDY_EN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BMC150_MAGN_MASK_DRDY_EN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w2, [x9]
Lloh6:
	adrp	x8, _BMC150_MAGN_SHIFT_DRDY_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMC150_MAGN_SHIFT_DRDY_EN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w3, w20, w8
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_5
; %bb.2:
	str	w20, [x21]
	cbz	w20, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_bmc150_magn_reset_intr
	tbnz	w0, #31, LBB0_5
LBB0_4:
	mov	w22, #0
	b	LBB0_6
LBB0_5:
	mov	x22, x0
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BMC150_MAGN_REG_INT_DRDY,4,2   ; @BMC150_MAGN_REG_INT_DRDY
	.comm	_BMC150_MAGN_MASK_DRDY_EN,4,2   ; @BMC150_MAGN_MASK_DRDY_EN
	.comm	_BMC150_MAGN_SHIFT_DRDY_EN,4,2  ; @BMC150_MAGN_SHIFT_DRDY_EN
	.no_dead_strip	_bmc150_magn_data_rdy_trigger_set_state
.subsections_via_symbols
