	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dr_matcher_init_nic
_dr_matcher_init_nic:                   ## @dr_matcher_init_nic
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r14
	xorl	%edx, %edx
	callq	_dr_matcher_set_ste_builders
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_dr_matcher_set_ste_builders
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.1:
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5dr_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	xorl	%eax, %eax
	testl	%r12d, %r12d
	sete	%al
	movq	24(%r15,%rax,8), %rax
	movq	%rax, 16(%r15)
	movl	(%r14), %edi
	movq	_DR_CHUNK_SIZE_1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MLX5DR_STE_LU_TYPE_DONT_CARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_mlx5dr_ste_htbl_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	movl	(%r12), %esi
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	callq	_mlx5dr_ste_htbl_alloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rdi
	callq	_mlx5dr_htbl_get
	movq	(%r15), %rdi
	callq	_mlx5dr_htbl_get
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%r15), %rdi
	callq	_mlx5dr_ste_htbl_free
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot generate IPv4 or IPv6 rules with given mask\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DR_CHUNK_SIZE_1,4,2            ## @DR_CHUNK_SIZE_1
	.comm	_MLX5DR_STE_LU_TYPE_DONT_CARE,4,2 ## @MLX5DR_STE_LU_TYPE_DONT_CARE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_dr_matcher_init_nic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dr_matcher_init_nic
_dr_matcher_init_nic:                   ; @dr_matcher_init_nic
	.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
	mov	x19, x1
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	mov	w2, #0
	bl	_dr_matcher_set_ste_builders
	mov	x21, x0
	mov	x0, x22
	mov	x1, x19
	mov	w2, #1
	bl	_dr_matcher_set_ste_builders
	cbz	w21, LBB0_3
; %bb.1:
	cbz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx5dr_dbg
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	cmp	w21, #0
	mov	w8, #32
	mov	w9, #24
	csel	x8, x9, x8, ne
	ldr	x8, [x19, x8]
	str	x8, [x19, #16]
	ldr	w0, [x20]
Lloh4:
	adrp	x21, _DR_CHUNK_SIZE_1@GOTPAGE
Lloh5:
	ldr	x21, [x21, _DR_CHUNK_SIZE_1@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh6:
	adrp	x8, _MLX5DR_STE_LU_TYPE_DONT_CARE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX5DR_STE_LU_TYPE_DONT_CARE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_mlx5dr_ste_htbl_alloc
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x20]
	ldr	w1, [x21]
	ldr	x8, [x19, #16]
	ldp	w3, w2, [x8]
	bl	_mlx5dr_ste_htbl_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.5:
	bl	_mlx5dr_htbl_get
	ldr	x0, [x19]
	bl	_mlx5dr_htbl_get
	mov	w20, #0
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	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_9:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	x0, [x19]
	bl	_mlx5dr_ste_htbl_free
	b	LBB0_8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot generate IPv4 or IPv6 rules with given mask\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DR_CHUNK_SIZE_1,4,2            ; @DR_CHUNK_SIZE_1
	.comm	_MLX5DR_STE_LU_TYPE_DONT_CARE,4,2 ; @MLX5DR_STE_LU_TYPE_DONT_CARE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_dr_matcher_init_nic
.subsections_via_symbols
