	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmi160_config_device_irq
_bmi160_config_device_irq:              ## @bmi160_config_device_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	_iio_priv
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_regmap_get_device
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_BMI160_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	movq	_BMI160_EDGE_TRIGGERED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_BMI160_EDGE_TRIGGERED@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jne	LBB0_8
## %bb.5:
	movq	_BMI160_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ebx
LBB0_7:
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_of_property_read_bool
	movl	(%r15), %edi
	movq	_BMI160_NORMAL_WRITE_USLEEP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r14d, %esi
	movl	%eax, %edx
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bmi160_config_pin              ## TAILCALL
LBB0_8:
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	%r13d, (%rcx)
	je	LBB0_7
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_BMI160_ACTIVE_HIGH,4,2         ## @BMI160_ACTIVE_HIGH
	.comm	_BMI160_EDGE_TRIGGERED,4,2      ## @BMI160_EDGE_TRIGGERED
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_TRIGGER_HIGH,4,2          ## @IRQF_TRIGGER_HIGH
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid interrupt type 0x%x specified\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"drive-open-drain"

	.comm	_BMI160_NORMAL_WRITE_USLEEP,4,2 ## @BMI160_NORMAL_WRITE_USLEEP
	.no_dead_strip	_bmi160_config_device_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmi160_config_device_irq
_bmi160_config_device_irq:              ; @bmi160_config_device_irq
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_iio_priv
	mov	x20, x0
	ldr	w0, [x0]
	bl	_regmap_get_device
Lloh0:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _BMI160_ACTIVE_HIGH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMI160_ACTIVE_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _BMI160_EDGE_TRIGGERED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BMI160_EDGE_TRIGGERED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w21, w9, w8
	b	LBB0_8
LBB0_2:
Lloh9:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _BMI160_EDGE_TRIGGERED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BMI160_EDGE_TRIGGERED@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	b	LBB0_8
LBB0_4:
Lloh15:
	adrp	x8, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _BMI160_ACTIVE_HIGH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BMI160_ACTIVE_HIGH@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
	b	LBB0_8
LBB0_6:
Lloh21:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.7:
	mov	w21, #0
LBB0_8:
	ldr	w0, [x0]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_property_read_bool
	mov	x2, x0
	ldr	w0, [x20]
Lloh26:
	adrp	x8, _BMI160_NORMAL_WRITE_USLEEP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BMI160_NORMAL_WRITE_USLEEP@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x8]
	mov	x1, x19
	mov	x3, x21
	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
	b	_bmi160_config_pin
LBB0_9:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_dev_err
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_BMI160_ACTIVE_HIGH,4,2         ; @BMI160_ACTIVE_HIGH
	.comm	_BMI160_EDGE_TRIGGERED,4,2      ; @BMI160_EDGE_TRIGGERED
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_TRIGGER_HIGH,4,2          ; @IRQF_TRIGGER_HIGH
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid interrupt type 0x%x specified\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"drive-open-drain"

	.comm	_BMI160_NORMAL_WRITE_USLEEP,4,2 ; @BMI160_NORMAL_WRITE_USLEEP
	.no_dead_strip	_bmi160_config_device_irq
.subsections_via_symbols
