	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_spi_irq_subscribe
_cw1200_spi_irq_subscribe:              ## @cw1200_spi_irq_subscribe
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_cw1200_spi_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.1(%rip), %r8
	xorl	%esi, %esi
	movq	%r15, %r9
	callq	_request_threaded_irq
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_enable_irq_wake
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_WARN_ON
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_free_irq
	movl	%r14d, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SW IRQ subscribe\n"

	.comm	_cw1200_spi_irq_handler,4,2     ## @cw1200_spi_irq_handler
	.comm	_IRQF_TRIGGER_HIGH,4,2          ## @IRQF_TRIGGER_HIGH
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"cw1200_wlan_irq"

	.no_dead_strip	_cw1200_spi_irq_subscribe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cw1200_spi_irq_subscribe
_cw1200_spi_irq_subscribe:              ; @cw1200_spi_irq_subscribe
	.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, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh2:
	adrp	x8, _cw1200_spi_irq_handler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cw1200_spi_irq_handler@GOTPAGEOFF]
Lloh4:
	adrp	x9, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh11:
	adrp	x4, l_.str.1@PAGE
Lloh12:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	mov	x20, x0
	lsr	w0, w0, #31
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_enable_irq_wake
	mov	x20, x0
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SW IRQ subscribe\n"

	.comm	_cw1200_spi_irq_handler,4,2     ; @cw1200_spi_irq_handler
	.comm	_IRQF_TRIGGER_HIGH,4,2          ; @IRQF_TRIGGER_HIGH
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"cw1200_wlan_irq"

	.no_dead_strip	_cw1200_spi_irq_subscribe
.subsections_via_symbols
