	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selinux_socket_bind
_selinux_socket_bind:                   ## @selinux_socket_bind
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCKET__BIND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_socket_has_perm
	testl	%eax, %eax
	jne	LBB0_16
## %bb.1:
	movq	(%rbx), %r15
	movq	(%r15), %r14
	movq	_PF_INET@GOTPCREL(%rip), %r12
	cmpq	(%r12), %r14
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	movq	_PF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r14
	jne	LBB0_16
LBB0_3:
	movq	%rbx, %rdi
	callq	_SOCK_INODE
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	cmpq	(%r12), %r14
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, %eax
	cmoveq	%r13, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	sete	%cl
	cmovneq	%r13, %rdx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movl	4(%r13,%rcx,4), %edi
	callq	_ntohs
	movl	%eax, %r12d
	testw	%ax, %ax
	je	LBB0_8
## %bb.4:
	leaq	-52(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_inet_get_local_port_range
	movq	_PROT_SOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-52(%rbp), %esi
	callq	_max
	movzwl	%r12w, %ebx
	cmpw	%ax, %r12w
	jb	LBB0_6
## %bb.5:
	cmpl	%ebx, -48(%rbp)
	jge	LBB0_8
LBB0_6:
	movl	8(%r15), %edi
	leaq	-44(%rbp), %rdx
	movl	%ebx, %esi
	callq	_sel_netport_sid
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movq	_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	callq	_COMMON_AUDIT_DATA_INIT
	movl	%ebx, %edi
	callq	_htons
	movq	%rax, -72(%rbp)
	movq	%r14, -80(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	4(%rax), %edi
	movl	-44(%rbp), %esi
	movq	_SOCKET__NAME_BIND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %r8
	callq	_avc_has_perm
	testl	%eax, %eax
	jne	LBB0_16
LBB0_8:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_9
## %bb.10:
	cltq
	leaq	l_switch.table.selinux_socket_bind(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_RAWIP_SOCKET__NODE_BIND@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r15d
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_sel_netnode_sid
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	movq	_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdi
	callq	_COMMON_AUDIT_DATA_INIT
	movzwl	%r12w, %edi
	callq	_htons
	movq	%rax, -72(%rbp)
	movq	%r14, -80(%rbp)
	movq	_PF_INET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_14
## %bb.13:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	jmp	LBB0_15
LBB0_14:
	leaq	-96(%rbp), %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	_ipv6_addr_copy
LBB0_15:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movl	-44(%rbp), %esi
	leaq	-96(%rbp), %r8
	movl	%r15d, %ecx
	callq	_avc_has_perm
LBB0_16:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,4,2                    ## @current
	.comm	_SOCKET__BIND,4,2               ## @SOCKET__BIND
	.comm	_PF_INET,8,3                    ## @PF_INET
	.comm	_PF_INET6,8,3                   ## @PF_INET6
	.comm	_PROT_SOCK,4,2                  ## @PROT_SOCK
	.comm	_NET,4,2                        ## @NET
	.comm	_SOCKET__NAME_BIND,4,2          ## @SOCKET__NAME_BIND
	.comm	_TCP_SOCKET__NODE_BIND,4,2      ## @TCP_SOCKET__NODE_BIND
	.comm	_UDP_SOCKET__NODE_BIND,4,2      ## @UDP_SOCKET__NODE_BIND
	.comm	_DCCP_SOCKET__NODE_BIND,4,2     ## @DCCP_SOCKET__NODE_BIND
	.comm	_RAWIP_SOCKET__NODE_BIND,4,2    ## @RAWIP_SOCKET__NODE_BIND
	.no_dead_strip	_selinux_socket_bind
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.selinux_socket_bind
l_switch.table.selinux_socket_bind:
	.quad	_UDP_SOCKET__NODE_BIND
	.quad	_TCP_SOCKET__NODE_BIND
	.quad	_DCCP_SOCKET__NODE_BIND

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selinux_socket_bind
_selinux_socket_bind:                   ; @selinux_socket_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCKET__BIND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCKET__BIND@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_socket_has_perm
	cbnz	w0, LBB0_16
; %bb.1:
	ldr	x23, [x21]
	ldr	x19, [x23]
Lloh6:
	adrp	x25, _PF_INET@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PF_INET@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh8:
	adrp	x9, _PF_INET6@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PF_INET6@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x19, x8
	ccmp	x19, x9, #4, ne
	b.ne	LBB0_9
; %bb.2:
	mov	x0, x21
	bl	_SOCK_INODE
	ldr	x24, [x0]
	ldr	x8, [x25]
	mov	w9, #4
	mov	w10, #8
	cmp	x19, x8
	csel	x8, x10, x9, eq
	csel	x26, x20, xzr, eq
	csel	x21, xzr, x20, eq
	ldr	w0, [x20, x8]
	bl	_ntohs
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.3:
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_inet_get_local_port_range
Lloh11:
	adrp	x8, _PROT_SOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PROT_SOCK@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [sp, #8]
	bl	_max
	cmp	w22, w0
	b.lo	LBB0_5
; %bb.4:
	ldr	w8, [sp, #4]
	cmp	w8, w22
	b.ge	LBB0_7
LBB0_5:
	ldr	w0, [x23, #8]
	add	x2, sp, #12
	mov	x1, x22
	bl	_sel_netport_sid
	cbnz	w0, LBB0_16
; %bb.6:
Lloh14:
	adrp	x8, _NET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NET@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x0, sp, #16
	bl	_COMMON_AUDIT_DATA_INIT
	mov	x0, x22
	bl	_htons
	stp	x19, x0, [sp, #32]
	ldr	w1, [sp, #12]
	ldp	w2, w0, [x24]
Lloh17:
	adrp	x8, _SOCKET__NAME_BIND@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SOCKET__NAME_BIND@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	add	x4, sp, #16
	bl	_avc_has_perm
	cbnz	w0, LBB0_16
LBB0_7:
	ldr	w8, [x24]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_10
; %bb.8:
Lloh20:
	adrp	x9, l_switch.table.selinux_socket_bind@PAGE
Lloh21:
	add	x9, x9, l_switch.table.selinux_socket_bind@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_11
LBB0_9:
	mov	w0, #0
	b	LBB0_16
LBB0_10:
Lloh22:
	adrp	x8, _RAWIP_SOCKET__NODE_BIND@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RAWIP_SOCKET__NODE_BIND@GOTPAGEOFF]
LBB0_11:
	ldr	w23, [x8]
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_sel_netnode_sid
	cbnz	w0, LBB0_16
; %bb.12:
Lloh24:
	adrp	x8, _NET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NET@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x0, sp, #16
	bl	_COMMON_AUDIT_DATA_INIT
	mov	x0, x22
	bl	_htons
	stp	x19, x0, [sp, #32]
	ldr	x8, [x25]
	cmp	x19, x8
	b.ne	LBB0_14
; %bb.13:
	ldr	x8, [x26]
	str	x8, [sp, #24]
	b	LBB0_15
LBB0_14:
	add	x0, sp, #16
	mov	x1, x21
	bl	_ipv6_addr_copy
LBB0_15:
	ldr	w1, [sp, #12]
	ldp	w2, w0, [x24]
	add	x4, sp, #16
	mov	x3, x23
	bl	_avc_has_perm
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_current,4,2                    ; @current
	.comm	_SOCKET__BIND,4,2               ; @SOCKET__BIND
	.comm	_PF_INET,8,3                    ; @PF_INET
	.comm	_PF_INET6,8,3                   ; @PF_INET6
	.comm	_PROT_SOCK,4,2                  ; @PROT_SOCK
	.comm	_NET,4,2                        ; @NET
	.comm	_SOCKET__NAME_BIND,4,2          ; @SOCKET__NAME_BIND
	.comm	_TCP_SOCKET__NODE_BIND,4,2      ; @TCP_SOCKET__NODE_BIND
	.comm	_UDP_SOCKET__NODE_BIND,4,2      ; @UDP_SOCKET__NODE_BIND
	.comm	_DCCP_SOCKET__NODE_BIND,4,2     ; @DCCP_SOCKET__NODE_BIND
	.comm	_RAWIP_SOCKET__NODE_BIND,4,2    ; @RAWIP_SOCKET__NODE_BIND
	.no_dead_strip	_selinux_socket_bind
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.selinux_socket_bind
l_switch.table.selinux_socket_bind:
	.quad	_UDP_SOCKET__NODE_BIND
	.quad	_TCP_SOCKET__NODE_BIND
	.quad	_DCCP_SOCKET__NODE_BIND

.subsections_via_symbols
