	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_set_congestion_control     ## -- Begin function tcp_set_congestion_control
	.p2align	4, 0x90
_tcp_set_congestion_control:            ## @tcp_set_congestion_control
	.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, %rbx
	movq	%rdi, %r15
	callq	_inet_csk
	movq	%rax, %r12
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%rbx, %rdi
	callq	_tcp_ca_find
	cmpq	(%r12), %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	_TCP_CONG_NON_RESTRICTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_7
## %bb.5:
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movl	16(%rbx), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	callq	_tcp_cleanup_congestion_control
	movq	%rbx, (%r12)
	movq	(%r15), %rax
	movq	_TCP_CLOSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	*%rcx
	jmp	LBB0_12
LBB0_2:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_12:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_TCP_CONG_NON_RESTRICTED,4,2    ## @TCP_CONG_NON_RESTRICTED
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_TCP_CLOSE,8,3                  ## @TCP_CLOSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_set_congestion_control     ; -- Begin function tcp_set_congestion_control
	.p2align	2
_tcp_set_congestion_control:            ; @tcp_set_congestion_control
	.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	x21, x1
	mov	x19, x0
	bl	_inet_csk
	mov	x20, x0
	bl	_rcu_read_lock
	mov	x0, x21
	bl	_tcp_ca_find
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.1:
	mov	x21, x0
	cbz	x0, LBB0_9
; %bb.2:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _TCP_CONG_NON_RESTRICTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TCP_CONG_NON_RESTRICTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_capable
	cbz	x0, LBB0_11
LBB0_4:
	ldr	w0, [x21, #16]
	bl	_try_module_get
	cbz	w0, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_tcp_cleanup_congestion_control
	str	x21, [x20]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _TCP_CLOSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TCP_CLOSE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	blr	x8
LBB0_8:
	mov	w19, #0
	b	LBB0_13
LBB0_9:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh13:
	adrp	x8, _EPERM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_13:
	bl	_rcu_read_unlock
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_TCP_CONG_NON_RESTRICTED,4,2    ; @TCP_CONG_NON_RESTRICTED
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_TCP_CLOSE,8,3                  ; @TCP_CLOSE
.subsections_via_symbols
