	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_get_port                   ## -- Begin function BIO_get_port
	.p2align	4, 0x90
_BIO_get_port:                          ## @BIO_get_port
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -40(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BIO_sock_init
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.3:
	movq	_BIO_LOOKUP_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AF_INET@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r15d, %r15d
	leaq	-40(%rbp), %r9
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_BIO_lookup
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	-40(%rbp), %rdi
	callq	_BIO_ADDRINFO_family
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.6:
	movq	-40(%rbp), %rdi
	callq	_BIO_ADDRINFO_address
	movl	%eax, %edi
	callq	_BIO_ADDR_rawport
	movl	%eax, %edi
	callq	_ntohs
	movw	%ax, (%r14)
	movl	$1, %r15d
	jmp	LBB0_7
LBB0_1:
	movq	_BIO_F_BIO_GET_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_NO_PORT_DEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%rbx, %rdx
	callq	_ERR_add_error_data
	jmp	LBB0_9
LBB0_5:
	movq	_BIO_F_BIO_GET_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_ADDRINFO_ADDR_IS_NOT_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
	xorl	%r15d, %r15d
LBB0_7:
	movq	-40(%rbp), %rdi
	callq	_BIO_ADDRINFO_free
LBB0_9:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_F_BIO_GET_PORT,4,2         ## @BIO_F_BIO_GET_PORT
	.comm	_BIO_R_NO_PORT_DEFINED,4,2      ## @BIO_R_NO_PORT_DEFINED
	.comm	_BIO_LOOKUP_CLIENT,4,2          ## @BIO_LOOKUP_CLIENT
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_BIO_R_ADDRINFO_ADDR_IS_NOT_AF_INET,4,2 ## @BIO_R_ADDRINFO_ADDR_IS_NOT_AF_INET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"host="

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_get_port                   ; -- Begin function BIO_get_port
	.p2align	2
_BIO_get_port:                          ; @BIO_get_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	str	xzr, [sp, #8]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_BIO_sock_init
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _BIO_LOOKUP_CLIENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIO_LOOKUP_CLIENT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x21, _AF_INET@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AF_INET@GOTPAGEOFF]
	ldr	x3, [x21]
Lloh5:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	add	x5, sp, #8
	mov	x0, #0
	mov	x1, x20
	bl	_BIO_lookup
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x0, [sp, #8]
	bl	_BIO_ADDRINFO_family
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.4:
	ldr	x0, [sp, #8]
	bl	_BIO_ADDRINFO_address
	bl	_BIO_ADDR_rawport
	bl	_ntohs
	strh	w0, [x19]
	mov	w19, #1
	b	LBB0_10
LBB0_5:
Lloh8:
	adrp	x8, _BIO_F_BIO_GET_PORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BIO_F_BIO_GET_PORT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _BIO_R_NO_PORT_DEFINED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BIO_R_NO_PORT_DEFINED@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_BIOerr
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x20
	bl	_ERR_add_error_data
LBB0_7:
	mov	w19, #0
LBB0_8:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_9:
Lloh16:
	adrp	x8, _BIO_F_BIO_GET_PORT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BIO_F_BIO_GET_PORT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _BIO_R_ADDRINFO_ADDR_IS_NOT_AF_INET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BIO_R_ADDRINFO_ADDR_IS_NOT_AF_INET@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_BIOerr
	mov	w19, #0
LBB0_10:
	ldr	x0, [sp, #8]
	bl	_BIO_ADDRINFO_free
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_F_BIO_GET_PORT,4,2         ; @BIO_F_BIO_GET_PORT
	.comm	_BIO_R_NO_PORT_DEFINED,4,2      ; @BIO_R_NO_PORT_DEFINED
	.comm	_BIO_LOOKUP_CLIENT,4,2          ; @BIO_LOOKUP_CLIENT
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_BIO_R_ADDRINFO_ADDR_IS_NOT_AF_INET,4,2 ; @BIO_R_ADDRINFO_ADDR_IS_NOT_AF_INET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"host="

.subsections_via_symbols
