	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e3x0_button_probe
_e3x0_button_probe:                     ## @e3x0_button_probe
	.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	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_platform_get_irq_byname
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r12)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 8(%r12)
	movq	%r14, 16(%r12)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movq	_e3x0_button_press_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %r8
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r13d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r13d, %ebx
	jmp	LBB0_12
LBB0_2:
	movl	%r15d, %ebx
	jmp	LBB0_12
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_7:
	movq	_e3x0_button_release_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %r8
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_9:
	movq	%r12, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	xorl	%ebx, %ebx
LBB0_12:
	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	"press"

L_.str.1:                               ## @.str.1
	.asciz	"release"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"NI Ettus Research USRP E3x0 Button Driver"

L_.str.3:                               ## @.str.3
	.asciz	"e3x0_button/input0"

	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_e3x0_button_press_handler,4,2  ## @e3x0_button_press_handler
L_.str.4:                               ## @.str.4
	.asciz	"e3x0-button"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to request 'press' IRQ#%d: %d\n"

	.comm	_e3x0_button_release_handler,4,2 ## @e3x0_button_release_handler
L_.str.6:                               ## @.str.6
	.asciz	"Failed to request 'release' IRQ#%d: %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"Can't register input device: %d\n"

	.no_dead_strip	_e3x0_button_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e3x0_button_probe
_e3x0_button_probe:                     ; @e3x0_button_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_platform_get_irq_byname
	mov	x20, x0
	tbnz	w0, #31, LBB0_12
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_6
; %bb.3:
	mov	x22, x0
Lloh4:
	adrp	x8, l_.str.2@PAGE
Lloh5:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh6:
	adrp	x9, l_.str.3@PAGE
Lloh7:
	add	x9, x9, l_.str.3@PAGEOFF
	stp	x8, x9, [x0]
	str	x19, [x0, #16]
Lloh8:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_input_set_capability
Lloh14:
	adrp	x8, _e3x0_button_press_handler@GOTPAGE
Lloh15:
	ldr	x8, [x8, _e3x0_button_press_handler@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x4, l_.str.4@PAGE
Lloh18:
	add	x4, x4, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	mov	x5, x22
	bl	_devm_request_irq
	cbz	w0, LBB0_7
; %bb.4:
	mov	x23, x0
	str	x23, [sp]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	mov	x20, x23
	b	LBB0_12
LBB0_5:
	mov	x20, x21
	b	LBB0_12
LBB0_6:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_7:
Lloh24:
	adrp	x8, _e3x0_button_release_handler@GOTPAGE
Lloh25:
	ldr	x8, [x8, _e3x0_button_release_handler@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x4, l_.str.4@PAGE
Lloh28:
	add	x4, x4, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	x5, x22
	bl	_devm_request_irq
	cbz	w0, LBB0_9
; %bb.8:
	mov	x20, x0
	str	x20, [sp]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	b	LBB0_12
LBB0_9:
	mov	x0, x22
	bl	_input_register_device
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.10:
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	mov	w1, #1
	bl	_device_init_wakeup
LBB0_12:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"press"

l_.str.1:                               ; @.str.1
	.asciz	"release"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"NI Ettus Research USRP E3x0 Button Driver"

l_.str.3:                               ; @.str.3
	.asciz	"e3x0_button/input0"

	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_e3x0_button_press_handler,4,2  ; @e3x0_button_press_handler
l_.str.4:                               ; @.str.4
	.asciz	"e3x0-button"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to request 'press' IRQ#%d: %d\n"

	.comm	_e3x0_button_release_handler,4,2 ; @e3x0_button_release_handler
l_.str.6:                               ; @.str.6
	.asciz	"Failed to request 'release' IRQ#%d: %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"Can't register input device: %d\n"

	.no_dead_strip	_e3x0_button_probe
.subsections_via_symbols
