	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_register_bh             ## -- Begin function cw1200_register_bh
	.p2align	4, 0x90
_cw1200_register_bh:                    ## @cw1200_register_bh
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_WQ_MEM_RECLAIM@GOTPCREL(%rip), %rax
	movq	_WQ_HIGHPRI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rdi, %rbx
	movq	_WQ_CPU_INTENSIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	$1, %edx
	callq	_alloc_workqueue
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_cw1200_bh_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	leaq	60(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	56(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	52(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	48(%rbx), %rdi
	movq	_CW1200_BH_RESUMED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atomic_set
	leaq	12(%rbx), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movups	%xmm0, 32(%rbx)
	callq	_init_waitqueue_head
	leaq	8(%rbx), %rdi
	callq	_init_waitqueue_head
	movl	4(%rbx), %edi
	movq	%rbx, %rsi
	callq	_queue_work
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movl	%ebx, %edi
	callq	_WARN_ON
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cw1200_bh"

	.comm	_WQ_MEM_RECLAIM,4,2             ## @WQ_MEM_RECLAIM
	.comm	_WQ_HIGHPRI,4,2                 ## @WQ_HIGHPRI
	.comm	_WQ_CPU_INTENSIVE,4,2           ## @WQ_CPU_INTENSIVE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cw1200_bh_work,4,2             ## @cw1200_bh_work
L_.str.1:                               ## @.str.1
	.asciz	"[BH] register.\n"

	.comm	_CW1200_BH_RESUMED,4,2          ## @CW1200_BH_RESUMED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_register_bh             ; -- Begin function cw1200_register_bh
	.p2align	2
_cw1200_register_bh:                    ; @cw1200_register_bh
	.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	x8, _WQ_MEM_RECLAIM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WQ_MEM_RECLAIM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WQ_HIGHPRI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WQ_HIGHPRI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _WQ_CPU_INTENSIVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WQ_CPU_INTENSIVE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #1
	bl	_alloc_workqueue
	str	w0, [x19, #4]
	cbz	w0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _cw1200_bh_work@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cw1200_bh_work@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_WORK
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	add	x0, x19, #60
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #56
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #52
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #48
Lloh16:
	adrp	x8, _CW1200_BH_RESUMED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CW1200_BH_RESUMED@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_atomic_set
	add	x0, x19, #12
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #16]
	bl	_init_waitqueue_head
	add	x0, x19, #8
	bl	_init_waitqueue_head
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_queue_work
	cmp	w0, #0
	cset	w19, eq
	mov	x0, x19
	bl	_WARN_ON
	b	LBB0_3
LBB0_2:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cw1200_bh"

	.comm	_WQ_MEM_RECLAIM,4,2             ; @WQ_MEM_RECLAIM
	.comm	_WQ_HIGHPRI,4,2                 ; @WQ_HIGHPRI
	.comm	_WQ_CPU_INTENSIVE,4,2           ; @WQ_CPU_INTENSIVE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cw1200_bh_work,4,2             ; @cw1200_bh_work
l_.str.1:                               ; @.str.1
	.asciz	"[BH] register.\n"

	.comm	_CW1200_BH_RESUMED,4,2          ; @CW1200_BH_RESUMED
.subsections_via_symbols
