	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmi160_get_irq
_bmi160_get_irq:                        ## @bmi160_get_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_of_irq_get_byname
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	movq	_BMI160_PIN_INT1@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_irq_get_byname
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movq	_BMI160_PIN_INT2@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"INT1"

	.comm	_BMI160_PIN_INT1,4,2            ## @BMI160_PIN_INT1
L_.str.1:                               ## @.str.1
	.asciz	"INT2"

	.comm	_BMI160_PIN_INT2,4,2            ## @BMI160_PIN_INT2
	.no_dead_strip	_bmi160_get_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmi160_get_irq
_bmi160_get_irq:                        ; @bmi160_get_irq
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_irq_get_byname
	cmp	w0, #0
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _BMI160_PIN_INT1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BMI160_PIN_INT1@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_of_irq_get_byname
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _BMI160_PIN_INT2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMI160_PIN_INT2@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"INT1"

	.comm	_BMI160_PIN_INT1,4,2            ; @BMI160_PIN_INT1
l_.str.1:                               ; @.str.1
	.asciz	"INT2"

	.comm	_BMI160_PIN_INT2,4,2            ; @BMI160_PIN_INT2
	.no_dead_strip	_bmi160_get_irq
.subsections_via_symbols
