	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_os_shutdown_socket             ## -- Begin function os_shutdown_socket
	.p2align	4, 0x90
_os_shutdown_socket:                    ## @os_shutdown_socket
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %eax
	orl	%esi, %eax
	je	LBB0_1
## %bb.2:
	movq	_SHUT_RD@GOTPCREL(%rip), %rax
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	movq	_SHUT_RDWR@GOTPCREL(%rip), %rax
LBB0_4:
	testl	%esi, %esi
	jne	LBB0_6
## %bb.5:
	movq	_SHUT_WR@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	callq	_shutdown
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	js	LBB0_7
## %bb.9:
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHUT_RDWR,4,2                  ## @SHUT_RDWR
	.comm	_SHUT_RD,4,2                    ## @SHUT_RD
	.comm	_SHUT_WR,4,2                    ## @SHUT_WR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_os_shutdown_socket             ; -- Begin function os_shutdown_socket
	.p2align	2
_os_shutdown_socket:                    ; @os_shutdown_socket
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	orr	w8, w2, w1
	cbz	w8, LBB0_3
; %bb.1:
	cmp	w2, #0
	ccmp	w1, #0, #4, ne
Lloh0:
	adrp	x8, _SHUT_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHUT_RDWR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SHUT_RD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SHUT_RD@GOTPAGEOFF]
	csel	x8, x8, x9, ne
Lloh4:
	adrp	x9, _SHUT_WR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SHUT_WR@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x8, x9, ne
	ldr	w1, [x8]
	bl	_shutdown
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SHUT_RDWR,4,2                  ; @SHUT_RDWR
	.comm	_SHUT_RD,4,2                    ; @SHUT_RD
	.comm	_SHUT_WR,4,2                    ; @SHUT_WR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
