	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adis_enable_irq                ## -- Begin function adis_enable_irq
	.p2align	4, 0x90
_adis_enable_irq:                       ## @adis_enable_irq
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movl	8(%rcx), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_adis_read_reg_16
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_ADIS_MSC_CTRL_DATA_RDY_POL_HIGH@GOTPCREL(%rip), %rax
	movl	-20(%rbp), %ecx
	orl	(%rax), %ecx
	movq	_ADIS_MSC_CTRL_DATA_RDY_DIO2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%ecx, %edx
	movq	_ADIS_MSC_CTRL_DATA_RDY_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	andl	%edx, %ecx
	orl	%eax, %edx
	testl	%r14d, %r14d
	cmovel	%ecx, %edx
	movl	%edx, -20(%rbp)
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	callq	_adis_write_reg_16
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADIS_MSC_CTRL_DATA_RDY_POL_HIGH,4,2 ## @ADIS_MSC_CTRL_DATA_RDY_POL_HIGH
	.comm	_ADIS_MSC_CTRL_DATA_RDY_DIO2,4,2 ## @ADIS_MSC_CTRL_DATA_RDY_DIO2
	.comm	_ADIS_MSC_CTRL_DATA_RDY_EN,4,2  ## @ADIS_MSC_CTRL_DATA_RDY_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adis_enable_irq                ; -- Begin function adis_enable_irq
	.p2align	2
_adis_enable_irq:                       ; @adis_enable_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x2, [x8]
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	br	x2
LBB0_2:
	ldr	w1, [x8, #8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_adis_read_reg_16
	cbnz	w0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _ADIS_MSC_CTRL_DATA_RDY_POL_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADIS_MSC_CTRL_DATA_RDY_POL_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
Lloh3:
	adrp	x9, _ADIS_MSC_CTRL_DATA_RDY_DIO2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADIS_MSC_CTRL_DATA_RDY_DIO2@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh6:
	adrp	x9, _ADIS_MSC_CTRL_DATA_RDY_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADIS_MSC_CTRL_DATA_RDY_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bic	w10, w8, w9
	orr	w8, w9, w8
	cmp	w20, #0
	csel	w2, w10, w8, eq
	str	w2, [sp, #12]
	ldr	x8, [x19]
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_adis_write_reg_16
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ADIS_MSC_CTRL_DATA_RDY_POL_HIGH,4,2 ; @ADIS_MSC_CTRL_DATA_RDY_POL_HIGH
	.comm	_ADIS_MSC_CTRL_DATA_RDY_DIO2,4,2 ; @ADIS_MSC_CTRL_DATA_RDY_DIO2
	.comm	_ADIS_MSC_CTRL_DATA_RDY_EN,4,2  ; @ADIS_MSC_CTRL_DATA_RDY_EN
.subsections_via_symbols
