	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socket_check_bind
_socket_check_bind:                     ## @socket_check_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_portacl_enabled@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	movl	(%rax), %r12d
	movq	_PF_INET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_3
## %bb.2:
	movq	_PF_INET6@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_11
LBB0_3:
	movl	(%rbx), %r13d
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_5
## %bb.4:
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_11
LBB0_5:
	movq	(%rcx), %rdi
	movq	_AF_INET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_8
## %bb.6:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ntohs
	movq	%rax, %rcx
	movq	_portacl_autoport_exempt@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.9:
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	movq	%rcx, %rbx
	callq	_sotoinpcb
	movq	_INP_LOWPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	movq	%rbx, %rcx
	je	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rules_check                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_portacl_enabled,8,3            ## @portacl_enabled
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_PF_INET6,4,2                   ## @PF_INET6
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_portacl_autoport_exempt,8,3    ## @portacl_autoport_exempt
	.comm	_INP_LOWPORT,4,2                ## @INP_LOWPORT
	.no_dead_strip	_socket_check_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socket_check_bind
_socket_check_bind:                     ; @socket_check_bind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _portacl_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _portacl_enabled@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x21, x1
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _PF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PF_INET6@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PF_INET6@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w20, w8
	ccmp	w20, w9, #4, ne
	b.ne	LBB0_8
; %bb.2:
	ldr	w22, [x21]
Lloh9:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w22, w8
	ccmp	w22, w9, #4, ne
	b.ne	LBB0_8
; %bb.3:
	mov	x19, x0
	ldr	x0, [x3]
Lloh15:
	adrp	x8, _AF_INET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_10
; %bb.4:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ntohs
	mov	x23, x0
Lloh21:
	adrp	x8, _portacl_autoport_exempt@GOTPAGE
Lloh22:
	ldr	x8, [x8, _portacl_autoport_exempt@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.5:
	cbnz	x23, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_sotoinpcb
	ldr	w8, [x0]
Lloh24:
	adrp	x9, _INP_LOWPORT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _INP_LOWPORT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rules_check
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_portacl_enabled,8,3            ; @portacl_enabled
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_PF_INET6,4,2                   ; @PF_INET6
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_portacl_autoport_exempt,8,3    ; @portacl_autoport_exempt
	.comm	_INP_LOWPORT,4,2                ; @INP_LOWPORT
	.no_dead_strip	_socket_check_bind
.subsections_via_symbols
