	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nbpf_chan_prepare
_nbpf_chan_prepare:                     ## @nbpf_chan_prepare
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	4(%rdi), %eax
	movq	_NBPF_SLAVE_RQ_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	andl	%eax, %r9d
	je	LBB0_2
## %bb.1:
	movq	_NBPF_CHAN_CFG_HIEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
LBB0_2:
	movq	_NBPF_SLAVE_RQ_LOW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	je	LBB0_4
## %bb.3:
	movq	_NBPF_CHAN_CFG_LOEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_4:
	movq	_NBPF_SLAVE_RQ_LEVEL@GOTPCREL(%rip), %rsi
	andl	(%rsi), %eax
	movq	_NBPF_CHAN_CFG_AM@GOTPCREL(%rip), %r8
	movl	$512, %esi                      ## imm = 0x200
	andl	(%r8), %esi
	movq	_NBPF_CHAN_CFG_LVL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	orl	%r9d, %edx
	testl	%eax, %eax
	cmovel	%eax, %esi
	orl	8(%rdi), %edx
	orl	%esi, %edx
	movl	%edx, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NBPF_SLAVE_RQ_HIGH,4,2         ## @NBPF_SLAVE_RQ_HIGH
	.comm	_NBPF_CHAN_CFG_HIEN,4,2         ## @NBPF_CHAN_CFG_HIEN
	.comm	_NBPF_SLAVE_RQ_LOW,4,2          ## @NBPF_SLAVE_RQ_LOW
	.comm	_NBPF_CHAN_CFG_LOEN,4,2         ## @NBPF_CHAN_CFG_LOEN
	.comm	_NBPF_SLAVE_RQ_LEVEL,4,2        ## @NBPF_SLAVE_RQ_LEVEL
	.comm	_NBPF_CHAN_CFG_LVL,4,2          ## @NBPF_CHAN_CFG_LVL
	.comm	_NBPF_CHAN_CFG_AM,4,2           ## @NBPF_CHAN_CFG_AM
	.no_dead_strip	_nbpf_chan_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nbpf_chan_prepare
_nbpf_chan_prepare:                     ; @nbpf_chan_prepare
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _NBPF_SLAVE_RQ_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NBPF_SLAVE_RQ_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NBPF_CHAN_CFG_HIEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NBPF_CHAN_CFG_HIEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldp	w10, w11, [x0, #4]
	tst	w8, w10
Lloh6:
	adrp	x8, _NBPF_SLAVE_RQ_LOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NBPF_SLAVE_RQ_LOW@GOTPAGEOFF]
	csel	w9, wzr, w9, eq
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x12, _NBPF_CHAN_CFG_LOEN@GOTPAGE
Lloh10:
	ldr	x12, [x12, _NBPF_CHAN_CFG_LOEN@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	tst	w8, w10
	csel	w8, wzr, w12, eq
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _NBPF_CHAN_CFG_LVL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NBPF_CHAN_CFG_LVL@GOTPAGEOFF]
Lloh14:
	adrp	x12, _NBPF_CHAN_CFG_AM@GOTPAGE
Lloh15:
	ldr	x12, [x12, _NBPF_CHAN_CFG_AM@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	ldr	w12, [x12]
	and	w12, w12, #0x200
	orr	w9, w12, w9
Lloh18:
	adrp	x12, _NBPF_SLAVE_RQ_LEVEL@GOTPAGE
Lloh19:
	ldr	x12, [x12, _NBPF_SLAVE_RQ_LEVEL@GOTPAGEOFF]
Lloh20:
	ldr	w12, [x12]
	tst	w12, w10
	csel	w9, wzr, w9, eq
	orr	w8, w8, w11
	orr	w8, w8, w9
	str	w8, [x0]
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NBPF_SLAVE_RQ_HIGH,4,2         ; @NBPF_SLAVE_RQ_HIGH
	.comm	_NBPF_CHAN_CFG_HIEN,4,2         ; @NBPF_CHAN_CFG_HIEN
	.comm	_NBPF_SLAVE_RQ_LOW,4,2          ; @NBPF_SLAVE_RQ_LOW
	.comm	_NBPF_CHAN_CFG_LOEN,4,2         ; @NBPF_CHAN_CFG_LOEN
	.comm	_NBPF_SLAVE_RQ_LEVEL,4,2        ; @NBPF_SLAVE_RQ_LEVEL
	.comm	_NBPF_CHAN_CFG_LVL,4,2          ; @NBPF_CHAN_CFG_LVL
	.comm	_NBPF_CHAN_CFG_AM,4,2           ; @NBPF_CHAN_CFG_AM
	.no_dead_strip	_nbpf_chan_prepare
.subsections_via_symbols
