	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cw1200_irq_enable            ## -- Begin function __cw1200_irq_enable
	.p2align	4, 0x90
___cw1200_irq_enable:                   ## @__cw1200_irq_enable
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_HIF_8601_SILICON@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ST90TDS_CONFIG_REG_ID@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	cmpq	(%rdi), %rax
	jne	LBB0_8
## %bb.1:
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	___cw1200_reg_read_32
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_ST90TDS_CONF_IRQ_RDY_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	orl	-40(%rbp), %edx
	jmp	LBB0_6
LBB0_8:
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	___cw1200_reg_read_16
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	_ST90TDS_CONT_IRQ_RDY_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.11:
	orl	-36(%rbp), %edx
	jmp	LBB0_13
LBB0_2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_16
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_16
LBB0_5:
	notl	%edx
	andl	-40(%rbp), %edx
LBB0_6:
	movl	%edx, -40(%rbp)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	___cw1200_reg_write_32
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_17
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_15
LBB0_12:
	notl	%edx
	andl	-36(%rbp), %edx
LBB0_13:
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	___cw1200_reg_write_16
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_17
## %bb.14:
	leaq	L_.str.3(%rip), %rdi
LBB0_15:
	movl	%eax, %ebx
LBB0_16:
	callq	_pr_err
LBB0_17:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIF_8601_SILICON,8,3           ## @HIF_8601_SILICON
	.comm	_ST90TDS_CONFIG_REG_ID,4,2      ## @ST90TDS_CONFIG_REG_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't read config register.\n"

	.comm	_ST90TDS_CONF_IRQ_RDY_ENABLE,4,2 ## @ST90TDS_CONF_IRQ_RDY_ENABLE
L_.str.1:                               ## @.str.1
	.asciz	"Can't write config register.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Can't read control register.\n"

	.comm	_ST90TDS_CONT_IRQ_RDY_ENABLE,4,2 ## @ST90TDS_CONT_IRQ_RDY_ENABLE
L_.str.3:                               ## @.str.3
	.asciz	"Can't write control register.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cw1200_irq_enable            ; -- Begin function __cw1200_irq_enable
	.p2align	2
___cw1200_irq_enable:                   ; @__cw1200_irq_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _HIF_8601_SILICON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIF_8601_SILICON@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
Lloh3:
	adrp	x22, _ST90TDS_CONFIG_REG_ID@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ST90TDS_CONFIG_REG_ID@GOTPAGEOFF]
	ldr	w1, [x22]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	add	x2, sp, #12
	mov	x0, x19
	bl	___cw1200_reg_read_32
	tbnz	w0, #31, LBB0_7
; %bb.2:
Lloh5:
	adrp	x8, _ST90TDS_CONF_IRQ_RDY_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ST90TDS_CONF_IRQ_RDY_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbz	w21, LBB0_9
; %bb.3:
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	b	LBB0_10
LBB0_4:
	add	x2, sp, #8
	mov	x0, x19
	bl	___cw1200_reg_read_16
	tbnz	w0, #31, LBB0_8
; %bb.5:
Lloh8:
	adrp	x8, _ST90TDS_CONT_IRQ_RDY_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ST90TDS_CONT_IRQ_RDY_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w21, LBB0_12
; %bb.6:
	ldr	w9, [sp, #8]
	orr	w2, w9, w8
	b	LBB0_13
LBB0_7:
	mov	x20, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_16
LBB0_8:
	mov	x20, x0
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_9:
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
LBB0_10:
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	___cw1200_reg_write_32
	tbz	w0, #31, LBB0_14
; %bb.11:
	mov	x20, x0
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_12:
	ldr	w9, [sp, #8]
	bic	w2, w9, w8
LBB0_13:
	str	w2, [sp, #8]
	ldr	w1, [x22]
	mov	x0, x19
	bl	___cw1200_reg_write_16
	tbnz	w0, #31, LBB0_15
LBB0_14:
	mov	w20, #0
	b	LBB0_17
LBB0_15:
	mov	x20, x0
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_16:
	bl	_pr_err
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_HIF_8601_SILICON,8,3           ; @HIF_8601_SILICON
	.comm	_ST90TDS_CONFIG_REG_ID,4,2      ; @ST90TDS_CONFIG_REG_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't read config register.\n"

	.comm	_ST90TDS_CONF_IRQ_RDY_ENABLE,4,2 ; @ST90TDS_CONF_IRQ_RDY_ENABLE
l_.str.1:                               ; @.str.1
	.asciz	"Can't write config register.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Can't read control register.\n"

	.comm	_ST90TDS_CONT_IRQ_RDY_ENABLE,4,2 ; @ST90TDS_CONT_IRQ_RDY_ENABLE
l_.str.3:                               ; @.str.3
	.asciz	"Can't write control register.\n"

.subsections_via_symbols
