	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wbcir_txmask
_wbcir_txmask:                          ## @wbcir_txmask
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$4, %eax
	cmpl	$15, %esi
	jg	LBB0_10
## %bb.1:
	movl	%esi, %ebx
	leal	-1(%rbx), %r12d
	cmpl	$8, %r12d
	jae	LBB0_2
## %bb.4:
	movl	$139, %eax
	btl	%r12d, %eax
	jb	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%rdi), %r15
	leaq	12(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rax
	movq	_WBCIR_TXSTATE_INACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	cmpl	%ebx, 8(%r15)
	je	LBB0_9
## %bb.8:
	movslq	%r12d, %rax
	leaq	l_switch.table.wbcir_txmask(%rip), %rcx
	movl	(%rcx,%rax,4), %esi
	movq	_WBCIR_REG_ECEIR_CTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r15), %rdi
	movl	$12, %edx
	callq	_wbcir_set_bits
	movl	%ebx, 8(%r15)
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WBCIR_TXSTATE_INACTIVE,8,3     ## @WBCIR_TXSTATE_INACTIVE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_WBCIR_REG_ECEIR_CTS,8,3        ## @WBCIR_REG_ECEIR_CTS
	.no_dead_strip	_wbcir_txmask
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.wbcir_txmask
l_switch.table.wbcir_txmask:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	3                               ## 0x3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wbcir_txmask
_wbcir_txmask:                          ; @wbcir_txmask
	.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
	cmp	w1, #15
	b.le	LBB0_2
; %bb.1:
	mov	w0, #4
	b	LBB0_6
LBB0_2:
	mov	x19, x1
	sub	w22, w1, #1
	cmp	w22, #8
	b.hs	LBB0_4
; %bb.3:
	mov	w8, #139
	lsr	w8, w8, w22
	tbnz	w8, #0, LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
LBB0_7:
	ldr	x21, [x0]
	add	x20, x21, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _WBCIR_TXSTATE_INACTIVE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WBCIR_TXSTATE_INACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x21, #8]
	cmp	w8, w19
	b.eq	LBB0_10
; %bb.9:
Lloh5:
	adrp	x8, l_switch.table.wbcir_txmask@PAGE
Lloh6:
	add	x8, x8, l_switch.table.wbcir_txmask@PAGEOFF
	ldr	w1, [x8, w22, sxtw #2]
	ldr	x8, [x21, #16]
Lloh7:
	adrp	x9, _WBCIR_REG_ECEIR_CTS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WBCIR_REG_ECEIR_CTS@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w2, #12
	bl	_wbcir_set_bits
	str	w19, [x21, #8]
LBB0_10:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_6
LBB0_11:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WBCIR_TXSTATE_INACTIVE,8,3     ; @WBCIR_TXSTATE_INACTIVE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_WBCIR_REG_ECEIR_CTS,8,3        ; @WBCIR_REG_ECEIR_CTS
	.no_dead_strip	_wbcir_txmask
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.wbcir_txmask
l_switch.table.wbcir_txmask:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	3                               ; 0x3

.subsections_via_symbols
