	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adis16480_config_irq_pin
_adis16480_config_irq_pin:              ## @adis16480_config_irq_pin
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movl	4(%rax), %edi
	callq	_irq_get_irq_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	xorl	%edi, %edi
	callq	_ADIS16480_DRDY_EN
	movl	%eax, %r13d
	movq	_ADIS16480_PIN_DIO1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_adis16480_int_pin_names@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %esi
	movq	%rbx, %rdi
	callq	_of_irq_get_byname
	testl	%eax, %eax
	jg	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r13
	jl	LBB0_5
## %bb.7:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_1:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_8:
	movl	%r13d, %edi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_9:
	callq	_ADIS16480_DRDY_SEL
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_irqd_get_trigger_type
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpl	(%rcx), %eax
	je	LBB0_13
## %bb.10:
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	jne	LBB0_11
LBB0_13:
	orl	%r13d, %ebx
	callq	_ADIS16480_DRDY_POL
	orl	%eax, %ebx
	movq	_ADIS16480_REG_FNCTIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_adis_write_reg_16              ## TAILCALL
LBB0_11:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_12:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not find IRQ %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ADIS16480_PIN_DIO1,4,2         ## @ADIS16480_PIN_DIO1
	.comm	_adis16480_int_pin_names,8,3    ## @adis16480_int_pin_names
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.1:                               ## @.str.1
	.asciz	"Invalid interrupt type 0x%x specified\n"

	.comm	_ADIS16480_REG_FNCTIO_CTRL,4,2  ## @ADIS16480_REG_FNCTIO_CTRL
	.no_dead_strip	_adis16480_config_irq_pin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adis16480_config_irq_pin
_adis16480_config_irq_pin:              ; @adis16480_config_irq_pin
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x22, x0
	ldr	x8, [x1]
	ldr	w0, [x8, #4]
	bl	_irq_get_irq_data
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	w0, #0
	bl	_ADIS16480_DRDY_EN
	mov	x20, x0
Lloh0:
	adrp	x8, _ADIS16480_PIN_DIO1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADIS16480_PIN_DIO1@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x24, _adis16480_int_pin_names@GOTPAGE
Lloh4:
	ldr	x24, [x24, _adis16480_int_pin_names@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x25, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w1, [x8, x25, lsl #2]
	mov	x0, x22
	bl	_of_irq_get_byname
	cmp	w0, #0
	b.gt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	x25, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_7
LBB0_5:
	ldr	x0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	b	LBB0_13
LBB0_6:
	mov	x23, x25
LBB0_7:
	mov	x0, x23
	bl	_ADIS16480_DRDY_SEL
	mov	x22, x0
	mov	x0, x21
	bl	_irqd_get_trigger_type
Lloh7:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #1
	b	LBB0_11
LBB0_9:
	mov	x2, x0
Lloh10:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.10:
	mov	w0, #0
LBB0_11:
	orr	w20, w22, w20
	bl	_ADIS16480_DRDY_POL
	orr	w2, w20, w0
Lloh13:
	adrp	x8, _ADIS16480_REG_FNCTIO_CTRL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ADIS16480_REG_FNCTIO_CTRL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_adis_write_reg_16
LBB0_12:
	ldr	x0, [x19]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not find IRQ %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADIS16480_PIN_DIO1,4,2         ; @ADIS16480_PIN_DIO1
	.comm	_adis16480_int_pin_names,8,3    ; @adis16480_int_pin_names
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.1:                               ; @.str.1
	.asciz	"Invalid interrupt type 0x%x specified\n"

	.comm	_ADIS16480_REG_FNCTIO_CTRL,4,2  ; @ADIS16480_REG_FNCTIO_CTRL
	.no_dead_strip	_adis16480_config_irq_pin
.subsections_via_symbols
