	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iw_cm_map
_iw_cm_map:                             ## @iw_cm_map
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	24(%rdi), %rdi
	addq	$12, %rdi
	callq	_dev_name
	movq	%rax, %r12
	movq	24(%r13), %rax
	movq	(%rax), %r15
	movq	$0, -72(%rbp)
	movq	%r12, %rdi
	callq	_strlen
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_strlen
	cmpl	$4, %eax
	jb	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	8(%r13), %eax
	movl	16(%r13), %ecx
	movl	%eax, 4(%r13)
	movl	%ecx, 12(%r13)
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_strcpy
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_strcpy
	movq	_RDMA_NL_IWCM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-72(%rbp), %rdi
	callq	_iwpm_register_pid
	testq	%rax, %rax
	jne	LBB0_13
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_iwpm_valid_pid
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	movl	$1, (%r13)
	movl	8(%r13), %eax
	movl	%eax, -48(%rbp)
	movl	16(%r13), %eax
	movl	%eax, -52(%rbp)
	movq	24(%r13), %rcx
	movq	_IW_F_NO_PORT_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rcx), %eax
	je	LBB0_7
## %bb.6:
	movq	_IWPM_FLAGS_NO_PORT_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	leaq	8(%r13), %rbx
	leaq	4(%r13), %r12
	movl	%eax, -64(%rbp)
	movl	(%r15), %esi
	leaq	-64(%rbp), %rdi
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.10:
	callq	_iwpm_add_and_query_mapping
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	leaq	16(%r13), %rsi
	addq	$12, %r13
	movl	-56(%rbp), %eax
	movl	%eax, (%r12)
	leaq	-60(%rbp), %rdi
	movl	-60(%rbp), %eax
	movl	%eax, (%r13)
	movq	%r13, %rdx
	callq	_iw_cm_check_wildcard
	jmp	LBB0_12
LBB0_8:
	callq	_iwpm_add_mapping
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movl	-56(%rbp), %eax
	movl	%eax, (%r12)
LBB0_12:
	movl	(%r15), %edx
	movl	-64(%rbp), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_iwpm_create_mapinfo
	movl	%eax, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RDMA_NL_IWCM,4,2               ## @RDMA_NL_IWCM
	.comm	_IW_F_NO_PORT_MAP,4,2           ## @IW_F_NO_PORT_MAP
	.comm	_IWPM_FLAGS_NO_PORT_MAP,4,2     ## @IWPM_FLAGS_NO_PORT_MAP
	.no_dead_strip	_iw_cm_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iw_cm_map
_iw_cm_map:                             ; @iw_cm_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0, #24]
	add	x0, x8, #12
	bl	_dev_name
	mov	x26, x0
	ldr	x8, [x22, #24]
	ldr	x25, [x8]
	str	xzr, [sp, #24]
	bl	_strlen
	cmp	w0, #3
	b.hi	LBB0_2
; %bb.1:
	mov	x0, x25
	bl	_strlen
	cmp	w0, #4
	b.lo	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	mov	x19, x22
	ldr	w8, [x19, #8]!
	mov	x20, x22
	str	w8, [x20, #4]!
	mov	x23, x20
	ldr	w8, [x23, #12]!
	mov	x24, x20
	str	w8, [x24, #8]!
	mov	w0, #0
	mov	x1, x26
	bl	_strcpy
	mov	w0, #0
	mov	x1, x25
	bl	_strcpy
Lloh3:
	adrp	x25, _RDMA_NL_IWCM@GOTPAGE
Lloh4:
	ldr	x25, [x25, _RDMA_NL_IWCM@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x0, sp, #24
	bl	_iwpm_register_pid
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_3
; %bb.5:
	bl	_iwpm_valid_pid
	cbz	w0, LBB0_3
; %bb.6:
	mov	w8, #1
	str	w8, [x22]
	ldr	w8, [x22, #8]
	ldr	w9, [x22, #16]
	stp	w9, w8, [sp, #12]
	ldr	x8, [x22, #24]
	ldr	w8, [x8, #8]
Lloh5:
	adrp	x9, _IW_F_NO_PORT_MAP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IW_F_NO_PORT_MAP@GOTPAGEOFF]
Lloh7:
	adrp	x10, _IWPM_FLAGS_NO_PORT_MAP@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IWPM_FLAGS_NO_PORT_MAP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w8, wzr, w10, eq
	str	w8, [sp]
	ldr	w1, [x25]
	cbz	w21, LBB0_9
; %bb.7:
	mov	x21, sp
	mov	x0, sp
	bl	_iwpm_add_and_query_mapping
	cbnz	w0, LBB0_11
; %bb.8:
	ldp	w9, w8, [sp, #4]
	str	w8, [x20]
	orr	x0, x21, #0x4
	str	w9, [x24]
	mov	x1, x23
	mov	x2, x24
	bl	_iw_cm_check_wildcard
	b	LBB0_11
LBB0_9:
	mov	x0, sp
	bl	_iwpm_add_mapping
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	w8, [sp, #8]
	str	w8, [x20]
LBB0_11:
	ldr	w2, [x25]
	ldr	w3, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_iwpm_create_mapinfo
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RDMA_NL_IWCM,4,2               ; @RDMA_NL_IWCM
	.comm	_IW_F_NO_PORT_MAP,4,2           ; @IW_F_NO_PORT_MAP
	.comm	_IWPM_FLAGS_NO_PORT_MAP,4,2     ; @IWPM_FLAGS_NO_PORT_MAP
	.no_dead_strip	_iw_cm_map
.subsections_via_symbols
